-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
113 lines (101 loc) · 3.03 KB
/
appveyor.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
platform:
- x64
image:
- Visual Studio 2015
configuration:
- Debug
install:
- set CONDA_ENV=build
- C:\Miniconda3-x64\Scripts\activate base
- conda config --set always_yes yes
- conda create --channel conda-forge
--name %CONDA_ENV%
cmake
deepdiff
intel-openmp=2018.0.3
mkl-devel=2018.0.3
mpmath
networkx
ninja
numpy
pybind11
pytest
python=3.6
- conda clean --all
- activate %CONDA_ENV%
- conda install --channel psi4
qcelemental
- conda list
before_build:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
- set SOURCE_FOLDER=%APPVEYOR_BUILD_FOLDER%
- set BUILD_FOLDER=%SOURCE_FOLDER%\build
- set INSTALL_FOLDER=%SOURCE_FOLDER%\install
- mkdir %BUILD_FOLDER% & cd %BUILD_FOLDER%
- cmake -G Ninja
-DCMAKE_BUILD_TYPE=%CONFIGURATION%
-DCMAKE_INSTALL_PREFIX=%INSTALL_FOLDER%
-DCMAKE_C_COMPILER=clang-cl
-DCMAKE_CXX_COMPILER=clang-cl
-DENABLE_XHOST=OFF
-DMAX_AM_ERI=5
%SOURCE_FOLDER%
build_script:
- cmake --build .
--config %CONFIGURATION%
-- -j %NUMBER_OF_PROCESSORS%
after_build:
- cmake --build .
--config %CONFIGURATION%
--target install
-- -j %NUMBER_OF_PROCESSORS%
before_test:
- set PYTHONPATH=%INSTALL_FOLDER%\lib
- python -c "import sys, psi4; print(sys.path); print(psi4)"
- dir %BUILD_FOLDER%\stage\lib
- dir %INSTALL_FOLDER%\lib
# TODO create psi4.bat and set PATH
- python %INSTALL_FOLDER%\bin\psi4 --version
test_script:
# Check if OpenMP config hadn't failed silently
- python -c "from psi4 import core; core.set_num_threads(42); assert core.get_num_threads() == 42"
- python %INSTALL_FOLDER%\bin\psi4 %SOURCE_FOLDER%\tests\tu1-h2o-energy\input.dat
#
# Skipped long tests (not enough time to run all of them):
# cbs-delta-energy cbs-xtpl-gradien
# dfmp2-ecp fnocc2
# mp2-module
# scf5
# psimrcc-sp1
# pywrap-all pywrap-cbs1
#
# Failling tests:
# ci-property
#
# Tests requiring AM > 5:
# opt-full-hess-every
#
- ctest --build-config %CONFIGURATION%
--exclude-regex "^(cbs-delta-energy|cbs-xtpl-gradient|dfmp2-ecp|fnocc2|mp2-module|scf5|psimrcc-sp1|pywrap-all|pywrap-cbs1|ci-property|opt-full-hess-every)$"
--label-regex quick
--output-on-failure
--parallel %NUMBER_OF_PROCESSORS%
- python %INSTALL_FOLDER%\bin\psi4 --test
after_test:
# Run failling tests, but their results are ignored
# TODO fix the tests
- ctest --build-config %CONFIGURATION%
--tests-regex "^(ci-property)$"
--output-on-failure
--parallel %NUMBER_OF_PROCESSORS% & exit 0
cache:
- C:\Miniconda3-x64\pkgs
artifacts:
- path: install
name: psi4
- path: build\tests
name: tests
branches:
only:
- master
# - 1.3.x