forked from ipython-contrib/jupyter_contrib_nbextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
74 lines (67 loc) · 2.51 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
version: '{branch}-{build}'
# we can't use shallow_clone to fetch a zip archive instead of git clone
# becuse we need the git clone to run in order to have a git repo that coveralls can look at.
clone_depth: 10
build: off
cache:
- '%LOCALAPPDATA%\pip\Cache'
environment:
COVERALLS_REPO_TOKEN:
secure: lFyaxdbvCvXKM+PjmN9FToU8DhsdS474RgaW/bNAu4IBnn7QbfZzDYrjKw33V6Oo
global:
# lxml will not build appropriately from source on Windows without the
# appropriate libxml headers. As a result, make pip use binary packages.
PIP_ONLY_BINARY: lxml
matrix:
- TOXENV: 'py27-notebook'
TOXPYTHON: C:\Python27\python.exe
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
- TOXENV: 'py36-notebook44'
TOXPYTHON: C:\Python36\python.exe
PYTHON_HOME: C:\Python36
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
- TOXENV: 'py36-notebook54'
TOXPYTHON: C:\Python36\python.exe
PYTHON_HOME: C:\Python36
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
- TOXENV: 'py36-notebook55'
TOXPYTHON: C:\Python36\python.exe
PYTHON_HOME: C:\Python36
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
install:
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside a powershell script as it would require us to restart the
# parent CMD process).
- "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- 'python -m pip install --disable-pip-version-check --user --upgrade pip'
# install tox
- pip install tox
# install of the actual project is handled by tox in tests
test_script:
# run tox tests
- '%PYTHON_HOME%\Scripts\tox -e %TOXENV%'
on_success:
- cmd: '%PYTHON_HOME%\Scripts\tox -e codecov || (echo "codecov failed :(" && cmd /c "exit /b 0")'
on_failure:
- ps: $($env:COVERALLS_REPO_TOKEN = '')
- ps: dir "env:"
- ps: get-content .tox\*\log\*
artifacts:
- path: .coverage
- path: dist\*
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))