Skip to content

Commit

Permalink
Update tox to pass down env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur committed May 26, 2020
1 parent 492b7a5 commit 1ff9b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ envlist = py27, py3
whitelist_externals= /bin/bash
/usr/bin/wget
/usr/bin/java
passenv = SWAGGER_URL
deps= -rrequirements.txt
-rtest-requirements.txt
commands=
wget -nc $SWAGGER_URL
wget -nc {env:SWAGGER_URL}
java -jar swagger-codegen-cli-2.3.1.jar generate -i openapis/swagger.yaml -l python -o swagger_client
bash -ec "cd swagger_client/; python setup.py install; cd .."
pytest {posargs: --cov=indexd -lvvx tests/ --cov-report=html --cov-report=xml --junit-xml=test-reports/results.xml}

0 comments on commit 1ff9b4a

Please sign in to comment.