forked from theochem/horton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (64 loc) · 2.4 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
sudo: false
language: python
python:
- "2.7"
addons:
apt:
packages:
- gcc
- g++
- gfortran
- libatlas-base-dev
- libhdf5-serial-dev
# libtool is needed by libint
- libtool
- doxygen
- cppcheck
cache:
directories:
- $HOME/depinstall/numpy-1.9.1
- $HOME/depinstall/scipy-0.11.0
- $HOME/depinstall/cython-0.17.1
- $HOME/depinstall/h5py-2.2.1
- $HOME/depinstall/matplotlib-1.1.0
- $HOME/depinstall/libint-2.0.3
# $HOME/depinstall/libxc-2.2.2
install:
- pip install --upgrade sphinx breathe
- bash tools/travis-ci/build_numpy-1.9.1.sh
- export PYTHONPATH=$HOME/depinstall/numpy-1.9.1/lib/python2.7/site-packages:$PYTHONPATH
- bash tools/travis-ci/build_scipy-0.11.0.sh
- export PYTHONPATH=$HOME/depinstall/scipy-0.11.0/lib/python2.7/site-packages:$PYTHONPATH
- bash tools/travis-ci/build_cython-0.17.1.sh
- export PYTHONPATH=$HOME/depinstall/cython-0.17.1/lib/python2.7/site-packages:$PYTHONPATH
- bash tools/travis-ci/build_h5py-2.2.1.sh
- export PYTHONPATH=$HOME/depinstall/h5py-2.2.1/lib/python2.7/site-packages:$PYTHONPATH
- bash tools/travis-ci/build_matplotlib-1.1.0.sh
- export PYTHONPATH=$HOME/depinstall/matplotlib-1.1.0/lib/python2.7/site-packages:$PYTHONPATH
- mkdir -p ~/.matplotlib/
# Ugly trick to avoid that the colon gets interpreted by the YAML parser.
- |-
echo "backend : Agg" > ~/.matplotlib/matplotlibrc
# - bash tools/travis-ci/build_libxc-2.2.2.sh
# - export LD_LIBRARY_PATH=$HOME/depinstall/libxc-2.2.2/lib:$LD_LIBRARY_PATH
# - export CPATH=$HOME/depinstall/libxc-2.2.2/include:$CPATH
- bash tools/travis-ci/build_libint-2.0.3.sh
- export LD_LIBRARY_PATH=$HOME/depinstall/libint-2.0.3/lib:$LD_LIBRARY_PATH
- export CPATH=$HOME/depinstall/libint-2.0.3/include/libint2:$CPATH
- (cd data/refatoms; make all; cd ../..)
# BLAS_LIBRARIES must be set because Python thinks it is running in Debian
# wheezy/sid while it is actually running Ubuntu-12.04.
- export BLAS_LIBRARIES=atlas:cblas
- (cd depends; make libxc)
- python setup.py build_ext -i -L ${LD_LIBRARY_PATH}
script:
# Run tests as usual and cleanup
- nosetests -v
- (cd doc; make html)
- bash cleanfiles.sh
# Get the master branch for a comparative analysis
- git config remote.origin.fetch refs/heads/*:refs/remotes/origin/*
- git fetch origin master --depth=50
- git branch master origin/master
# Run the trapdoor tests
- python tools/qa/trapdoor_cppcheck.py