Skip to content

Commit

Permalink
Fixed travis conf
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslavNqualisystems committed Dec 26, 2018
1 parent c5452d9 commit b9e20ad
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
language: python
python:
- '2.7'
env:
- TEST_DIR=package
- TEST_DIR=.
- "2.7"

install:
- pip install coveralls
- pushd package
- 'if [ ${TRAVIS_BRANCH} \!= "master" ] && [ -f dev_requirements.txt ]; then
pip install --extra-index-url https://testpypi.python.org/pypi -r dev_requirements.txt;
python setup.py develop --no-deps;
else
python setup.py install;
fi'
- popd
- cd $TEST_DIR
- pip install -r src/requirements.txt
- pip install -r test_requirements.txt
- pip install coveralls

script:
- 'if [ $TEST_DIR = "package" ]; then
nosetests --with-coverage --cover-package=cloudshell.firewall.juniper.junos tests;
else
nosetests --with-coverage --cover-package=src tests;
fi'
- nosetests --with-coverage --cover-package=src tests

after_success:
- coveralls

0 comments on commit b9e20ad

Please sign in to comment.