Travis: Set matrix to fast_finish, fix bash if to actually check value

This commit is contained in:
baldurk
2016-05-21 11:59:48 +02:00
parent cf0b4abdb0
commit 5507efab29
+5 -4
View File
@@ -20,6 +20,7 @@ env:
# only build docs once on linux
matrix:
fast_finish: true
include:
- compiler: gcc
env: CODE_BUILD=0 LINUX_BUILD=0 DOCS_BUILD=1
@@ -27,10 +28,10 @@ matrix:
# install dependencies
install:
- sudo apt-get update -qq
- if [ $CODE_BUILD ]; then sudo apt-get install -y -qq libx11-dev mesa-common-dev libgl1-mesa-dev qt5-default libqt5x11extras5-dev libxcb-keysyms1-dev ; fi
- if [ $DOCS_BUILD ]; then sudo apt-get install -y -qq python-sphinx python-sphinx-rtd-theme ; fi
- if [[ "$CODE_BUILD" == "1" ]]; then sudo apt-get install -y -qq libx11-dev mesa-common-dev libgl1-mesa-dev qt5-default libqt5x11extras5-dev libxcb-keysyms1-dev ; fi
- if [[ "$DOCS_BUILD" == "1" ]]; then sudo apt-get install -y -qq python-sphinx python-sphinx-rtd-theme ; fi
script:
- sh ./hash_version.sh
- if [ $CODE_BUILD ]; then make ; fi
- if [ $DOCS_BUILD ]; then cd docs/ && make html ; fi
- if [[ "$CODE_BUILD" == "1" ]]; then make ; fi
- if [[ "$DOCS_BUILD" == "1" ]]; then cd docs/ && make html ; fi