forked from jupyter-xeus/xeus-cling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
43 lines (37 loc) · 1.77 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
build: false
platform:
- x64
image:
- Visual Studio 2019
environment:
matrix:
- MINICONDA: C:\\xeus-conda
init:
- "ECHO %MINICONDA%"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" set VCVARPATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" set VCARGUMENT=%PLATFORM%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" set VCVARPATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019" set VCVARPATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- echo "%VCVARPATH% %VCARGUMENT%"
- "%VCVARPATH% %VCARGUMENT%"
- ps: Start-FileDownload 'http://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.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:
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
# Install dependencies
- conda install cmake dirent xeus-zmq=1.1.0 cling=0.9 nlohmann_json cppzmq xtl=0.7 pugixml cpp-argparse doctest>=2.4.6 zlib -c conda-forge
# Build and install xeus-cling
- mkdir build
- cd build
- cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\Library -D CMAKE_BUILD_TYPE=Release -D XEXTRA_JUPYTER_DATA_DIR=%MINICONDA%\\share\\jupyter -D XEUS_CLING_BUILD_TESTS=ON ..
- nmake
- nmake install
# Install jupyter_kernel_test and pytest
- conda install pytest jupyter_kernel_test -c conda-forge
build_script:
- cd test
- test_xeus_cling
- cd.. && cd.. && cd test && py.test . & exit 0