Add nose and coverage requirements in unittest script
[releng.git] / utils / test / testapi / htmlize / prepare.sh
1 #!/bin/bash
2
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7
8 #Creating virtual environment
9 virtualenv testapi_venv
10 source testapi_venv/bin/activate
11
12 # Swgger Codegen Tool
13 url="http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar"
14
15 #Check for jar file locally and in the repo
16 if [ ! -f swagger-codegen-cli.jar ];
17 then
18     wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar -O swagger-codegen-cli.jar
19 fi
20
21 # Start OPNFV Test API Server
22 cd utils/test/testapi/
23 pip install -r requirements.txt
24 ./install.sh
25 opnfv-testapi -c ../../../testapi_venv/etc/opnfv_testapi/config.ini &