-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
59 lines (54 loc) · 1.65 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
sudo: false
language: python
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
- xvfb
packages:
- gcc-5
- g++-5
- libblas-dev
- liblapack-dev
- libgsl0-dev
- libopenmpi-dev
- openmpi-bin
- cmake
- libgfortran3
- gfortran
- libfftw3-dev
- libgmp-dev
- libhdf5-serial-dev
- libboost1.55-all-dev
env:
- PYTHON_VERSION="2.7"
- PYTHON_VERSION="3.4"
- PYTHON_VERSION="3.6"
before_install:
- export CXX="g++-5" CC="gcc-5"
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=$HOME/miniconda3/bin:$PATH
- conda update --yes --quiet conda
- conda create --yes --quiet -n testenv python=$PYTHON_VERSION nomkl openblas pip scipy numpy
matplotlib sphinx setuptools cython tornado pyzmq h5py
joblib pandas numba
- source activate testenv
- pip install slaveparticles sphinx-gallery mako mpi4py cmocean
- wget https://s3-us-west-2.amazonaws.com/buildbin/triqs_$CC.tar.bz2
- tar -C / -jvxf triqs_$CC.tar.bz2
- export LD_LIBRARY_PATH=$HOME/lib/lib:$LD_LIBRARY_PATH
- export PYTHONPATH=$HOME/lib/lib/python2.7/site-packages:$PYTHONPATH
- export OPENBLAS_NUM_THREADS=1
install:
- export C_INCLUDE_PATH=$HOME/miniconda3/envs/testenv/include:$C_INCLUDE_PATH
- export CPLUS_INCLUDE_PATH=$HOME/miniconda3/envs/testenv/include:$CPLUS_INCLUDE_PATH
- python setup.py install
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- python setup.py test