forked from manodeep/Corrfunc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
136 lines (119 loc) · 4.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
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
language: c
sudo: required
notifications:
email:
recipients:
- manodeep@gmail.com
on_success: change
on_failure: always
env:
global:
- NUMPY_VERSION=1.12
- DOCTEST=true
- CORRFUNC_CI=true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
matrix:
fast_finish: true
include:
#### osx with clang doesn't use openmp -> so they are the slowest. Run them first
# - os: osx
# compiler: gcc
# env: COMPILER=gcc-4.9 FAMILY=gcc V='4.9' PYTHON_VERSION=2.6 NUMPY_VERSION=1.7
# before_install:
# - brew update
# - brew tap homebrew/versions && brew reinstall gcc49 --without-multilib
# - wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh
# - os: osx
# compiler: clang
# env: COMPILER=clang-omp FAMILY=clang V='3.5' PYTHON_VERSION=2.7
# before_install:
# - brew update
# - brew outdated xctool || brew upgrade xctool
# - brew tap homebrew/versions && brew install clang-omp
# - wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh
- os: osx
osx_image: xcode9
compiler: clang
env: COMPILER=clang FAMILY=clang V='Apple LLVM 7.0.0' PYTHON_VERSION=3.6 DOCTEST=false
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
- os: osx
osx_image: xcode8
compiler: clang
env: COMPILER=clang FAMILY=clang V='Apple LLVM 7.0.0' PYTHON_VERSION=3.5 DOCTEST=false
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
- os: osx
osx_image: xcode8
compiler: clang
env: COMPILER=clang FAMILY=clang V='Apple LLVM 7.0.0' PYTHON_VERSION=2.7 DOCTEST=false
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh
- os: linux
dist: trusty
sudo: required
compiler: gcc
env: COMPILER=gcc PYTHON_VERSION=2.7 DOCTEST=false
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- os: linux
dist: trusty
sudo: required
compiler: gcc
env: COMPILER=gcc PYTHON_VERSION=3.5
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- os: linux
dist: xenial
sudo: required
compiler: gcc
env: COMPILER=gcc-7 PYTHON_VERSION=2.7
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- os: linux
dist: xenial
sudo: required
compiler: gcc
env: COMPILER=gcc-7 PYTHON_VERSION=3.5
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- os: linux
dist: xenial
sudo: required
compiler: gcc
env: COMPILER=gcc-7 PYTHON_VERSION=3.6
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- os: linux
dist: xenial
sudo: required
compiler: gcc
env: COMPILER=gcc-7 PYTHON_VERSION=3.7 NUMPY_VERSION=1.16
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
install:
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda create -q --yes -n test python=$PYTHON_VERSION
- source activate test
- conda install -q --yes numpy=$NUMPY_VERSION || conda install -q --yes -c conda-forge numpy=$NUMPY_VERSION
- conda install -q --yes -c conda-forge gsl
- python -m pip install --upgrade pip
- python -m pip install --ignore-installed certifi --upgrade
- python -m pip install sphinx>=1.8
- export CC=$COMPILER
- which $COMPILER
- $COMPILER --version
- make -r CC=$COMPILER
- make install CC=$COMPILER
- python -m pip install -e .
script:
- echo $CFLAGS
- make tests CC=$COMPILER
- make -C docs html
- if [[ "${DOCTEST}" == "true" ]]; then make -C docs doctest ; fi