diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-05-23 10:21:00 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-05-23 10:21:00 +0200 |
commit | 08260ec20c35a3cae7659aced5b5e385f97f64ae (patch) | |
tree | bc0af86ba04d901f4c2d84e3b7d082f17953fc55 | |
parent | 5f64cfc2d7a551e494c101f4ab7849411599d2b5 (diff) | |
download | astra-08260ec20c35a3cae7659aced5b5e385f97f64ae.tar.gz astra-08260ec20c35a3cae7659aced5b5e385f97f64ae.tar.bz2 astra-08260ec20c35a3cae7659aced5b5e385f97f64ae.tar.xz astra-08260ec20c35a3cae7659aced5b5e385f97f64ae.zip |
Travis: only install cuda packages for cuda builds
This way non-cuda build failures caused by missing cuda header files will be
detected.
-rw-r--r-- | .travis.yml | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index 37b042e..6d0a3ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,5 @@ language: python -python: - - "2.7" - - "3.6" - os: - linux @@ -13,19 +9,43 @@ addons: apt: packages: - libboost-all-dev - - nvidia-common - - nvidia-current - - nvidia-cuda-toolkit - - nvidia-cuda-dev -env: - - CUDA=yes - - CUDA=no matrix: include: - env: CUDA=no CLANG=yes python: "3.6" + - env: CUDA=no + python: "2.7" + + - env: CUDA=no + python: "3.6" + + - env: CUDA=yes + python: "2.7" + addons: + apt: + packages: + - libboost-all-dev + - nvidia-common + - nvidia-current + - nvidia-cuda-toolkit + - nvidia-cuda-dev + + - env: CUDA=yes + python: "3.6" + addons: + apt: + packages: + - libboost-all-dev + - nvidia-common + - nvidia-current + - nvidia-cuda-toolkit + - nvidia-cuda-dev + exclude: + - os: linux + + before_install: - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; |