-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
108 lines (99 loc) · 3.19 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
sudo: false
language: cpp
cache:
apt: true
git:
depth: false
env:
global:
secure: "QNmikTCQbLuClaVFWUI+PTDBTZfcJyXgYnfbPe3WWHGf7Cm1oX+2J31duoGOHMOESNXElg2wXdT9Qby3EFRGyrAMCflJc6m3iQY703F+7vfG6hL2Sn7xKfyDQgk5gkNtORdpwyjgiMdieNu6GvzTvXjwgzcUvAvqxsTPc+erF10="
matrix:
include:
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc && CXX=g++" CONDA_UPLOAD="ON"
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" CONDA_UPLOAD="OFF"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" CONDA_UPLOAD="OFF"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" CONDA_UPLOAD="OFF"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- os: linux
compiler: clang
env: MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0" CONDA_UPLOAD="OFF"
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- env: ARCH="x86_64" MACOSX_DEPLOYMENT_TARGET="10.9" CONDA_UPLOAD="ON"
os: osx
osx_image: xcode8.3
# Use miniconda to install binary versions of numpy etc. from continuum
# analytic's repository. Follows an approach described by Dan Blanchard:
# https://gist.github.com/dan-blanchard/7045057
before_install:
- if [ ${PYTHON:0:1} == "2" ]; then
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
else
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
fi;
- chmod +x miniconda.sh
# When we are installing the 32 Bit conda on a 64 Bit system, the miniconda
# installer will ask for a "yes" despite the -b flag, so we pipe in a yes
- yes | ./miniconda.sh -b -p $HOME/miniconda
#- bash miniconda.sh -b -p -f $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$HOME/miniconda/lib:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# install everything required to build the receipe
- conda install conda-build anaconda-client
# Useful for debugging any issues with conda
- conda info -a
# Add dlr-sc channel for third part libraries
- conda config --add channels https://conda.anaconda.org/conda-forge
- conda config --add channels https://conda.anaconda.org/dlr-sc
- conda config --add channels https://conda.anaconda.org/oce
script:
- conda build ci/conda --dirty --no-remove-work-dir
after_success:
- if [[ "$CONDA_UPLOAD" == "ON" ]]; then
python ci/move-conda-package.py;
anaconda -t $BINSTAR_TOKEN upload *.bz2 --force;
fi
branches:
only:
- master
- /^tp/
- /^review/