Browse Source

Travis CI: Speed up

cl-refactor
Paweł Bylica 8 years ago
parent
commit
ec0878d280
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 1
      .travis.yml
  2. 2
      scripts/install-cuda-trusty.sh

1
.travis.yml

@ -14,6 +14,7 @@ matrix:
cache:
directories:
- $HOME/.hunter/_Base/Cache
- $HOME/.local
before_install:
- if [[ "$CUDA" = ON ]]; then source scripts/install-cuda-trusty.sh; fi
- if [ "$TRAVIS_OS_NAME" = linux ]; then scripts/install_cmake.sh; fi

2
scripts/install-cuda-trusty.sh

@ -14,7 +14,7 @@ travis_retry sudo dpkg -i cuda-repo-ubuntu1404_${CUDA_VER}_amd64.deb
travis_retry sudo apt-get update -qq
export CUDA_APT=${CUDA_VER:0:3}
export CUDA_APT=${CUDA_APT/./-}
travis_retry sudo apt-get install -qy cuda-drivers cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT}
travis_retry sudo apt-get install -qy cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT}
travis_retry sudo apt-get clean
export CUDA_HOME=/usr/local/cuda-${CUDA_VER:0:3}
export PATH=${CUDA_HOME}/bin:${PATH}

Loading…
Cancel
Save