forked from spacetelescope/hstcal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (74 loc) · 1.88 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
language: c
env:
global:
# Set defaults to avoid repeating in most cases
- MAIN_CMD="python --version"
- SETUP_CMD=""
- EXE_PREFIX="/tmp/miniconda3"
- CONDA_DEPS="gcc"
- PYTHON_VERSION=3.6
matrix:
fast_finish: true
include:
- os: linux
sudo: false
compiler: gcc
env:
- PYTHON_VERSION=2.7
- os: linux
sudo: false
compiler: gcc
env:
- PYTHON_VERSION=3.5
- os: linux
sudo: false
compiler: gcc
- os: osx
env:
- PYTHON_VERSION=2.7
- CFLAGS="-m64"
- LDFLAGS="-m64 -Wl,-rpath $EXE_PREFIX/envs/test/lib"
- os: osx
env:
- PYTHON_VERSION=3.5
- CFLAGS="-m64"
- LDFLAGS="-m64 -Wl,-rpath $EXE_PREFIX/envs/test/lib"
- os: osx
env:
- CFLAGS="-m64"
- LDFLAGS="-m64 -Wl,-rpath $EXE_PREFIX/envs/test/lib"
- os: osx
compiler: clang
env:
- PYTHON_VERSION=2.7
- CC="clang"
- CFLAGS="-arch x86_64"
- LDFLAGS="-arch x86_64"
- os: osx
compiler: clang
env:
- PYTHON_VERSION=3.5
- CC="clang"
- CFLAGS="-arch x86_64"
- LDFLAGS="-arch x86_64"
- os: osx
compiler: clang
env:
- CC="clang"
- CFLAGS="-arch x86_64"
- LDFLAGS="-arch x86_64"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CONDA_INSTALLER=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CONDA_INSTALLER=https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh; fi
- wget $CONDA_INSTALLER
- bash Miniconda3-latest-*.sh -b -p $EXE_PREFIX
- export PATH=$EXE_PREFIX/bin:$PATH
- conda create -q --yes -n test python=$PYTHON_VERSION
- source activate test
install:
- conda install --yes $CONDA_DEPS
- ./waf configure --prefix=$CONDA_PREFIX
- ./waf build
- ./waf install
script:
- $MAIN_CMD $SETUP_CMD