forked from omnia-md/conda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (46 loc) · 2.02 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
os:
- linux
- osx
language: c
sudo: required
services:
- docker
env:
global:
secure: "GjbAskNQDToMpTQ87p2TcG+JPdr+TIyWxarkzwd/KCQLuJqTKVVinWtKZwB+uaEnz2mmnXT7jFgbUU2Vuq0Dv78SOgTnqeh+ObP60imN4z8TB88PAFihv7JDJ45Nfbe7viKrWLWDYRebkObbJduc7xms0YEb9vs4e1+knTojiEc="
# The Dockerfile that defines the image that for the build environment is
# available in this repo at devtools/centos5-build-box/Dockerfile
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull rmcgibbo/centos5-build-box;
fi
script:
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${TRAVIS_BRANCH}" == "master" ]]; then
export UPLOAD="--upload omnia";
else
export UPLOAD=" ";
fi
- echo $UPLOAD
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -e UPLOAD -e BINSTAR_TOKEN -e TRAVIS_PULL_REQUEST
-t -i --rm -v `pwd`:/io rmcgibbo/centos5-build-box:latest
bash /io/devtools/docker-build.sh;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl -s -O https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh;
bash Miniconda3-latest-MacOSX-x86_64.sh -b -p $HOME/anaconda;
export PATH=$HOME/anaconda/bin:$PATH;
conda config --add channels omnia;
conda install -yq conda-build jinja2 anaconda-client;
if ! ./conda-build-all --check-against omnia --dry-run openmm; then
brew install -y doxygen;
curl -O -s http://developer.download.nvidia.com/compute/cuda/7_0/Prod/network_installers/mac/cuda_mac_installer_tk.tar.gz ;
curl -O -s http://developer.download.nvidia.com/compute/cuda/7_0/Prod/network_installers/mac/cuda_mac_installer_drv.tar.gz ;
sudo tar -zxf cuda_mac_installer_tk.tar.gz -C /;
sudo tar -zxf cuda_mac_installer_drv.tar.gz -C /;
fi;
if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
./conda-build-all --check-against omnia $UPLOAD * || true;
else
./conda-build-all --check-against omnia $UPLOAD *;
fi;
fi