forked from jupyter-xeus/xeus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
41 lines (35 loc) · 1.34 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
build: false
os: Visual Studio 2015
platform:
- x64
environment:
matrix:
- MINICONDA: C:\xeus-conda
init:
- "ECHO %MINICONDA%"
- C:\"Program Files (x86)"\"Microsoft Visual Studio 14.0"\VC\vcvarsall.bat %PLATFORM%
- ps: if($env:Platform -eq "x64"){Start-FileDownload 'http://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe' C:\Miniconda.exe; echo "Done"}
- ps: if($env:Platform -eq "x86"){Start-FileDownload 'http://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe' C:\Miniconda.exe; echo "Done"}
- cmd: C:\Miniconda.exe /S /D=C:\xeus-conda
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%MINICONDA%\\Library\\bin;%PATH%"
install:
# Install conda
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda install cmake cppzmq=4.3.0 zeromq=4.2.5 xtl=0.6 nlohmann_json=3.4.0 OpenSSL=1 -c conda-forge
- conda install pytest jupyter_kernel_test=0.3.0 -c conda-forge
# Build
- mkdir build
- cd build
- cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\LIBRARY -D DOWNLOAD_GTEST=ON -Dgtest_force_shared_crt=ON ..
- nmake install
# Build example
- cd ..\example
- mkdir build
- cd build
- cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\LIBRARY ..
- nmake
- cd ..\..\build
build_script:
- ctest --output-on-failure