Skip to content

Commit 0b32fa1

Browse files
committed
Fix shell conditionals
1 parent d67765f commit 0b32fa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ before_install:
2727
# Install dependencies for building the docs
2828
- $CONDA_INSTALL pip sphinx sphinx_rtd_theme pygments
2929
# Install dependencies for code coverage (codecov.io)
30-
- pip install codecov
30+
- if [ "$RUN_COVERAGE" == "yes" ]; then pip install codecov; fi
3131

3232
install:
3333
- python setup.py build
@@ -37,10 +37,10 @@ script:
3737
# Ensure that the documentation builds without warnings nor missing references
3838
- cd docs ; make SPHINXOPTS=-Wn clean html ; cd ..
3939
- python runtests.py -v
40-
- if [ "$RUN_COVERAGE" == "yes"]; then coverage run runtests.py; fi
40+
- if [ "$RUN_COVERAGE" == "yes" ]; then coverage run runtests.py; fi
4141

4242
after_success:
43-
- codecov
43+
- if [ "$RUN_COVERAGE" == "yes" ]; then codecov; fi
4444

4545
notifications:
4646
email: false

0 commit comments

Comments
 (0)