-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
180 lines (173 loc) · 4.42 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# We set the language to python, so that we can more easily specify our
# build matrix. We simply apt install the compiled dependencies.
language: python
matrix:
include:
# GCC 4.8 + Python 2.7
- os: linux
dist: trusty
sudo: false
addons:
apt:
packages:
- build-essential
- gcc
- g++
- autoconf
- automake
- m4
- libtool
- libmpich-dev
- cfitsio-dev
- pkg-config
env:
- MATRIX_EVAL="export CC=$(which gcc) && export CXX=$(which g++)"
python: 2.7
# GCC 4.8 + Python 3.6
- os: linux
dist: trusty
sudo: false
addons:
apt:
packages:
- build-essential
- gcc
- g++
- autoconf
- automake
- m4
- libtool
- libmpich-dev
- cfitsio-dev
- pkg-config
env:
- MATRIX_EVAL="export CC=$(which gcc) && export CXX=$(which g++)"
python: 3.6
# GCC 4.9
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- gcc-4.9
- autoconf
- automake
- m4
- libtool
- libmpich-dev
- cfitsio-dev
- pkg-config
env:
- MATRIX_EVAL="export CC=$(which gcc-4.9) && export CXX=$(which g++-4.9)"
python: 3.6
# GCC 5
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- gcc-5
- autoconf
- automake
- m4
- libtool
- libmpich-dev
- cfitsio-dev
- pkg-config
env:
- MATRIX_EVAL="export CC=$(which gcc-5) && export CXX=$(which g++-5)"
python: 3.6
# GCC 6
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- gcc-6
- autoconf
- automake
- m4
- libtool
- libmpich-dev
- cfitsio-dev
- pkg-config
env:
- MATRIX_EVAL="export CC=$(which gcc-6) && export CXX=$(which g++-6)"
python: 3.6
# GCC 7
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- gcc-7
- autoconf
- automake
- m4
- libtool
- libmpich-dev
- cfitsio-dev
- pkg-config
env:
- MATRIX_EVAL="export CC=$(which gcc-7) && export CXX=$(which g++-7)"
python: 3.6
# Set up MPI and mpi4py
before_install:
# set the compilers
- eval "${MATRIX_EVAL}"
# Information about the compilers
- echo "CC = ${CC} $(${CC} -dumpversion)"
- echo "FC = ${FC} $(${FC} -dumpversion)"
# set the MPICH underlying compilers
- export MPICC=$(which mpicc)
- export MPIFC=$(which mpif90)
- export MPICH_CC=${CC}
- export MPICH_FC=${FC}
# information about the MPI compilers
- echo "MPICC = ${MPICC}"
- echo "MPIFC = ${MPIFC}"
- echo "[MPI] CC = ${MPICC} $(${MPICC} -dumpversion)"
- echo "[MPI] FC = ${MPIFC} $(${MPIFC} -dumpversion)"
- ${MPICC} -v
- ${MPIFC} -v
# miniconda install
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda install -c conda-forge numpy healpy pip
- pip install mpi4py
# Skip this
install:
# build
- ./autogen.sh
- export CFLAGS="-O0 -g -fPIC"
- export CXXFLAGS="-O0 -g -fPIC"
- ./configure --prefix=$HOME/miniconda
- make
- make install
- cd python && python setup.py install && cd ..
# Configure, build, and run tests
script:
- make check
- cd python && python setup.py test && cd ..