-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
194 lines (186 loc) · 4.76 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
language: cpp
sudo: false
matrix:
#allow_failures:
# - compiler: clang
# env:
# - CXX_COMPILER='clang++-3.9'
# - PYTHON_VER='3.5'
# - C_COMPILER='clang-3.9'
# - Fortran_COMPILER='gfortran'
# - BUILD_TYPE='release'
# - NAME='clang'
# - VERSION='3.9'
include:
- os: linux
compiler: clang
addons: &1
apt:
sources:
- llvm-toolchain-precise-3.6
- ubuntu-toolchain-r-test
packages:
- liblapack-dev
- clang-3.6
- libhdf5-serial-dev
- gfortran
env:
- CXX_COMPILER='clang++-3.6'
- PYTHON_VER='3.6'
- C_COMPILER='clang-3.6'
- Fortran_COMPILER='gfortran'
- BUILD_TYPE='release'
- NAME='clang'
- VERSION='3.6'
#- os: linux
# compiler: clang
# addons: &2
# apt:
# sources:
# - llvm-toolchain-precise-3.9
# - ubuntu-toolchain-r-test
# packages:
# - liblapack-dev
# - clang-3.9
# - libhdf5-serial-dev
# - gfortran
# env:
# - CXX_COMPILER='clang++-3.9'
# - PYTHON_VER='3.5'
# - C_COMPILER='clang-3.9'
# - Fortran_COMPILER='gfortran'
# - BUILD_TYPE='release'
# - NAME='clang'
# - VERSION='3.9'
- os: linux
compiler: gcc
addons: &3
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- python-numpy
- cmake
- cmake-data
- liblapack-dev
- libhdf5-serial-dev
- g++-4.9
- gcc-4.9
- gfortran-4.9
env:
- CXX_COMPILER='g++-4.9'
- PYTHON_VER='2.7'
- C_COMPILER='gcc-4.9'
- Fortran_COMPILER='gfortran-4.9'
- BUILD_TYPE='release'
- NAME='gcc'
- VERSION='4.9'
- os: linux
compiler: gcc
addons: &4
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- python-numpy
- cmake
- cmake-data
- libhdf5-serial-dev
- liblapack-dev
- g++-6
- gcc-6
- gfortran-6
env:
- CXX_COMPILER='g++-6'
- PYTHON_VER='3.5'
- C_COMPILER='gcc-6'
- Fortran_COMPILER='gfortran-6'
- BUILD_TYPE='release'
- NAME='gcc'
- VERSION=6
# - os: linux
# compiler: gcc
# addons: &5
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - python3
# - cmake
# - cmake-data
# - libhdf5-serial-dev
# - liblapack-dev
# - g++-6
# - gcc-6
# - gfortran-6
# env:
# - CXX_COMPILER='g++-6'
# - PYTHON_VER='3.5'
# - C_COMPILER='gcc-6'
# - Fortran_COMPILER='gfortran-6'
# - BUILD_TYPE='release'
# - NAME='gcc'
# - VERSION=6
before_install:
- uname -a
- free -m
- df -h
- ulimit -a
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
- conda info -a
- conda create -q -n p4env python=$PYTHON_VER psi4 --only-deps -c psi4/label/dev
- source activate p4env
- conda install dftd3 gcp resp snsmp2 pybind11=2.2.3 -c psi4/label/dev
- conda list
before_script:
- python -V
- python -c 'import numpy; print(numpy.version.version)'
- cd ${TRAVIS_BUILD_DIR}
- export CXX=${CXX_COMPILER}
- export CC=${C_COMPILER}
- export FC=${Fortran_COMPILER}
- export CTEST_OUTPUT_ON_FAILURE=1
- ${CXX_COMPILER} --version
- ${Fortran_COMPILER} --version
- ${C_COMPILER} --version
# * can't use conda dist of the more complicated lib pkgs (e.g., CheMPS2, PCMSolver, v2rdm)
# b/c their c++ symbols don't mix with the different Travis compilers. for other
# reasons, pkgs are being compiled less statically, sad for CI.
# * can't enable trivial plugins b/c no psi4 for them to detect at start (e.g., snsmp2)
- >
cmake -Bbuild -H.
-DCMAKE_CXX_COMPILER=${CXX_COMPILER}
-DCMAKE_C_COMPILER=${C_COMPILER}
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DCMAKE_PREFIX_PATH=${HOME}/miniconda/envs/p4env
-DPYTHON_EXECUTABLE="${HOME}/miniconda/envs/p4env/bin/python"
-DENABLE_CheMPS2=OFF
-DENABLE_dkh=ON
-DENABLE_libefp=ON
-DENABLE_erd=OFF
-DENABLE_gdma=ON
-DENABLE_PCMSolver=OFF
-DENABLE_simint=ON
-DENABLE_snsmp2=OFF
-DENABLE_v2rdm_casscf=OFF
-DENABLE_PLUGIN_TESTING=ON
-DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/Install
- cd build
- ../.scripts/travis_build.sh
script:
- ./stage/${TRAVIS_BUILD_DIR}/Install/bin/psi4 ../tests/tu1-h2o-energy/input.dat
- python ../.scripts/travis_run_test.py
- python ../.scripts/travis_print_failing.py
- ./stage/${TRAVIS_BUILD_DIR}/Install/bin/psi4 --test
# safelist
branches:
only:
- master
- 1.1.x
- 1.0.x