forked from LSSTDESC/NaMaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (45 loc) · 1.32 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
language: python
sudo: false
cache:
apt: true
directories:
- "$HOME/libsharp"
- "$HOME/NaMaster"
- "$HOME/gsl-2.5"
- "$HOME/chealpix-3.11.4"
pip: true
addons:
apt:
packages:
- libfftw3-bin
- libfftw3-dev
- libfftw3-3
- autotools-dev
- autoconf
- libcfitsio3-dev
matrix:
include:
- os: linux
python: 2.7
sudo: required
env: TOXENV=py27
- os: linux
sudo: required
python: 3.6
env: TOXENV=py36
before_install:
- "chmod 777 ./.travis/install.sh"
- "chmod 777 ./.travis/install_deps.sh"
- "./.travis/install_deps.sh"
script:
- "./.travis/install.sh"
- export LDFLAGS="-L$TRAVIS_BUILD_DIR/lib -L/usr/local/lib -Wl,-rpath=$TRAVIS_BUILD_DIR/lib -Wl,-rpath=/usr/local/lib"
- "pip install ."
- export LD_LIBRARY_PATH=$TRAVIS_BUILD/lib:/usr/local/lib:$LD_LIBRARY_PATH
- python -m unittest discover -v
- "pip uninstall pymaster -y"
- "./.travis/install.sh --enable-fftw-pthreads --disable-openmp"
- export LDFLAGS="-L$TRAVIS_BUILD_DIR/lib -L/usr/local/lib -Wl,-rpath=$TRAVIS_BUILD_DIR/lib -Wl,-rpath=/usr/local/lib"
- "pip install --install-option='--enable-fftw-pthreads' --install-option='--disable-openmp' . "
- export LD_LIBRARY_PATH=$TRAVIS_BUILD/lib:/usr/local/lib:$LD_LIBRARY_PATH
- python -m unittest discover -v