-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
57 lines (48 loc) · 1.58 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
clone_depth: 1
platform: x64
image:
- Visual Studio 2017
configuration:
- Debug
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- C:\Miniconda36-x64\Scripts\activate base
- conda install --yes
cmake
mkl-devel=2018.0.3
numpy
pybind11
pytest
python=3.6
qcelemental>=0.4.0
-c defaults
-c conda-forge
- conda list
before_build:
- 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 -A %PLATFORM%
-DCMAKE_BUILD_TYPE=%CONFIGURATION%
-DCMAKE_INSTALL_PREFIX=%INSTALL_FOLDER%
-DENABLE_XHOST=OFF
-DCMAKE_C_FLAGS="/wd4101 /wd4996"
-DCMAKE_CXX_FLAGS="/wd4101 /wd4996"
%SOURCE_FOLDER%
build_script:
- cmake --build .
--config %CONFIGURATION%
after_build:
- cmake --build .
--config %CONFIGURATION%
--target install
before_test:
- set PYTHONPATH=%INSTALL_FOLDER%\lib
- python -c "import sys, pylibefp; print(sys.path); print(pylibefp.__version__)"
- dir %BUILD_FOLDER%\stage\lib
- dir %INSTALL_FOLDER%\lib
test_script:
- python -c "import pylibefp; print(pylibefp.__version__)"
# - conda install ci-psi4 psi4 -c psi4/label/dev # interferes with build if earlier
- python -c "import sys, pylibefp; sys.exit(pylibefp.test())"