forked from AlbertDeFusco/jupyter-fs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
83 lines (62 loc) · 2.55 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
image: Visual Studio 2019
environment:
PYTHON: "C:\\Python37"
build: off
services:
- docker
# mentioned in appveyor docs, doesn't seem to work
# stack: docker, jdk 1.8, node 12, python 3.7
# runs before repo checkout
init:
# set the python version permanently (for debugging)...
- ps: "[Environment]::SetEnvironmentVariable(\"Path\", \"$env:PYTHON;$env:PYTHON\\Scripts;$env:Path\", \"Machine\")"
# ...and for this session
- cmd: set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
# install latest pip
- python -m pip install --upgrade pip wheel setuptools
# set the node version
- ps: Install-Product node 12
# install yarn globally
- npm install -g yarn
install:
# set up a windows file share named "test"
- ps: ci/enable_os_share_windows.ps1
- ps: ci/create_os_share_windows.ps1
# set up a local s3_proxy server
- bash -c "ci/s3_local.sh"
- ps: Start-Process -FilePath "java" -ArgumentList "-jar","s3proxy","--properties","s3proxy.conf"
- bash -c "sleep 5"
- curl http://127.0.0.1:9000/
# install rust and winpty for pywinpty (one of python deps)
# refs: https://pypi.org/project/pywinpty/
# install rust
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -y --default-toolchain stable --default-host i686-pc-windows-msvc
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
# install winpty
- curl -#Lo winpty-native.zip "https://github.com/rprichard/winpty/releases/download/0.4.2/winpty-0.4.2-msvc2015.zip"
- call 7z e -y -o"winpty\x86\bin" winpty-native.zip "ia32\bin\winpty.dll" > nul
- call 7z e -y -o"winpty\x86\bin" winpty-native.zip "ia32\bin\winpty-agent.exe" > nul
- call 7z e -y -o"winpty\x86\bin" winpty-native.zip "ia32\bin\winpty-debugserver.exe" > nul
- call 7z e -y -o"winpty\x86\lib" winpty-native.zip "ia32\lib\winpty.lib" > nul
- call 7z e -y -o"winpty\include" winpty-native.zip "include\winpty.h" > nul
- call 7z e -y -o"winpty\include" winpty-native.zip "include\winpty_constants.h" > nul
- set PATH=%CD%\winpty\x86\bin;%PATH%
- set LIB=%CD%\winpty\x86\lib;%LIB%
- set INCLUDE=%CD%\winpty\include;%INCLUDE%
# install python deps
- pip install --upgrade -e .[dev] -v
# install js deps
- yarn install
# print all env vars
- ps: gci env:* | sort-object name
test_script:
# test the python code
- python -m pytest -v jupyterfs/tests --cov=jupyterfs --cov-branch
# test the js code
- ps: cd js
- yarn build
- yarn test
on_failure:
# enable remote login (via rdp) to windows ci vm on test failure
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))