-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
75 lines (60 loc) · 2.27 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Use old trusty image since new one breaks our builds
# See: https://blog.travis-ci.com/2017-12-12-new-trusty-images-q4-launch
#group: deprecated-2017Q4
os:
- linux
- osx
# Supported osx/xcode versions: https://docs.travis-ci.com/user/languages/objective-c/#Supported-Xcode-versions
# See also: https://blog.travis-ci.com/2016-10-04-osx-73-default-image-live/
osx_image: xcode9.4
addons:
homebrew:
casks:
- basictex
packages:
- doxygen
update: true
#cache:
# directories:
# # Disabled homebrew cache, did not appear to do anything
# #- $HOME/Library/Caches/Homebrew
# - $HOME/nvidia_cache
# # https://docs.travis-ci.com/user/caching/#Setting-the-timeout
# timeout: 540 # seconds: 9 min cache upload time (default is 3 min)
language: c
sudo: required
services:
- docker
env:
global:
secure:
- "K3LSjERPC+kKtF3qeE0i6r0LNvmliJcZIgFCS2jJv24KBYRLhRQit+WD0KgyuSOlEgW80zU1qbqxWWLRkVhUGtaZvKEnQHLS8ww1akYLBoWbEjJv4p2B+MiHo2fa7G8AYw5L28Ahmb4C6+/3/KjapX2K0xd5w7bSWVF1+iZPnts="
jobs:
- CUDA_VERSION="9.2" CUDA_SHORT_VERSION="92"
install:
- export DOCKER_IMAGE="jchodera/omnia-linux-anvil:texlive18-cuda${CUDA_SHORT_VERSION}"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull ${DOCKER_IMAGE};
fi
script:
# Retrieve conda-build-all
# DEBUG: Temporarily commented out to test
#- wget -O conda-build-all --quiet https://raw.githubusercontent.com/omnia-md/conda-recipes/master/conda-build-all
- chmod +x conda-build-all
# Select upload destination
- export CHECK_AGAINST="--check-against omnia omnia/label/cuda${CUDA_SHORT_VERSION} omnia/label/rc omnia/label/rccuda${CUDA_SHORT_VERSION}"
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${TRAVIS_BRANCH}" == "master" ]]; then
export UPLOAD="$CHECK_AGAINST --upload omnia";
else
export UPLOAD="$CHECK_AGAINST";
fi
- echo $UPLOAD
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -e UPLOAD -e BINSTAR_TOKEN -e CUDA_VERSION -e CUDA_SHORT_VERSION -e TRAVIS_PULL_REQUEST
-t -i --rm -v `pwd`:/io ${DOCKER_IMAGE}
bash /io/devtools/docker-build.sh;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Building osx...";
export NVIDIA_CACHE=$HOME/nvidia_cache;
bash devtools/osx-build.sh;
fi