Skip to content

Commit

Permalink
Moving away from multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
desilinguist committed Aug 2, 2020
1 parent a1926bd commit 06eb80f
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ install:
- ${HOME}/miniconda3/bin/conda create --name rsmenv -c conda-forge -c defaults -c ets --file requirements.txt python=${TRAVIS_PYTHON_VERSION} --yes --quiet
- ${HOME}/miniconda3/envs/rsmenv/bin/pip install nose-cov
- ${HOME}/miniconda3/envs/rsmenv/bin/pip install -e .
- |
cat << EOF > sitecustomize.py
import os
try:
import coverage
os.environ['COVERAGE_PROCESS_START'] = '.coveragerc'
coverage.process_startup()
except ImportError:
pass
EOF
- echo "import os" > sitecustomize.py
- echo "try:" >> sitecustomize.py
- echo " import coverage" >> sitecustomize.py
- echo " os.environ['COVERAGE_PROCESS_START'] = '.coveragerc'" >> sitecustomize.py
- echo " coverage.process_startup()" >> sitecustomize.py
- echo "except ImportError:" >> sitecustomize.py
- echo " pass" >> sitecustomize.py

script:
- ${HOME}/miniconda3/envs/rsmenv/bin/nosetests --nologcapture --with-coverage --cover-package=rsmtool --cov-config .coveragerc ${TESTFILES}
Expand Down

0 comments on commit 06eb80f

Please sign in to comment.