-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
58 lines (49 loc) · 1.53 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
language: cpp
sudo: false
matrix:
allow_failures:
- env:
- PYTHON_VER='2.7'
include:
- env:
- PYTHON_VER='2.7'
- env:
- PYTHON_VER='3.7'
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 tenv python=$PYTHON_VER psi4 psi4-dev ci-psi4 -c psi4/label/dev
- source activate tenv
- conda install pytest pytest-cov codecov -c conda-forge
- pip install pytest-shutil
- conda list
before_script:
- python -V
- psi4 --version
- cd ${TRAVIS_BUILD_DIR}
- PYBIND_INCLUDE=$(python -m pybind11 --includes)
- echo $PYBIND_INCLUDE
- >
cmake -H. -B.
-C${HOME}/miniconda/envs/tenv/share/cmake/psi4/psi4PluginCache.cmake
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_FLAGS="-I${HOME}/miniconda/envs/tenv/include ${PYBIND_INCLUDE}"
- make -j2
script:
- PYTHONPATH=../:$PYTHONPATH psi4 --test
- cd ..
- python -c "import v2rdm_casscf; print(v2rdm_casscf.__version__)"
# v2 source: full test & codecov
- python -c "import sys, v2rdm_casscf as v2; sys.exit(v2.test(extras=['--cov', '--durations=5']))"
# v2 install: quick test
- cd v2rdm_casscf && make install && cd .. && rm -rf v2rdm_casscf
- python -c "import sys, v2rdm_casscf as v2; sys.exit(v2.test('quick'))"
notifications:
email: true
#after_success:
# - codecov