Skip to content

Commit 18b69ff

Browse files
committed
Add CI settings
1 parent a9969ec commit 18b69ff

File tree

2 files changed

+73
-6
lines changed

2 files changed

+73
-6
lines changed

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ matrix:
1818
python: '3.7'
1919
env: TOXENV=condarecipe
2020
# linux, various python and notebook versions
21-
- os: linux
22-
python: '2.7'
23-
env: TOXENV=py27-notebook
2421
- os: linux
2522
python: '3.6'
2623
env: TOXENV=py36-notebook
2724
- os: linux
2825
python: '3.7'
2926
env: TOXENV=py37-notebook
30-
- os: linux
31-
python: '3.8'
32-
env: TOXENV=py37-notebook
3327
- os: linux
3428
python: 'pypy'
3529
env: TOXENV=pypy-notebook

appveyor.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
version: '{branch}-{build}'
2+
# we can't use shallow_clone to fetch a zip archive instead of git clone
3+
# because we need the git clone to run in order to have a git repo that
4+
# coveralls can look at.
5+
clone_depth: 10
6+
build: off
7+
cache:
8+
- '%LOCALAPPDATA%\pip\Cache'
9+
environment:
10+
matrix:
11+
- TOXENV: 'py27-notebook'
12+
TOXPYTHON: C:\Python27\python.exe
13+
PYTHON_HOME: C:\Python27
14+
PYTHON_VERSION: '2.7'
15+
PYTHON_ARCH: '32'
16+
- TOXENV: 'py33-notebook'
17+
TOXPYTHON: C:\Python33\python.exe
18+
PYTHON_HOME: C:\Python33
19+
PYTHON_VERSION: '3.3'
20+
PYTHON_ARCH: '32'
21+
- TOXENV: 'py34-notebook40'
22+
TOXPYTHON: C:\Python34\python.exe
23+
PYTHON_HOME: C:\Python34
24+
PYTHON_VERSION: '3.4'
25+
PYTHON_ARCH: '32'
26+
- TOXENV: 'py34-notebook41'
27+
TOXPYTHON: C:\Python34\python.exe
28+
PYTHON_HOME: C:\Python34
29+
PYTHON_VERSION: '3.4'
30+
PYTHON_ARCH: '32'
31+
- TOXENV: 'py34-notebook4x'
32+
TOXPYTHON: C:\Python34\python.exe
33+
PYTHON_HOME: C:\Python34
34+
PYTHON_VERSION: '3.4'
35+
PYTHON_ARCH: '32'
36+
- TOXENV: 'py35-notebook'
37+
TOXPYTHON: C:\Python35\python.exe
38+
PYTHON_HOME: C:\Python35
39+
PYTHON_VERSION: '3.5'
40+
PYTHON_ARCH: '32'
41+
init:
42+
- ps: echo $env:TOXENV
43+
- ps: ls C:\Python*
44+
install:
45+
# Prepend newly installed Python to the PATH of this build (this cannot be
46+
# done from inside a powershell script as it would require us to restart the
47+
# parent CMD process).
48+
- "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
49+
# Check that we have the expected version and architecture for Python
50+
- "python --version"
51+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
52+
# Upgrade to the latest version of pip to avoid it displaying warnings
53+
# about it being out of date.
54+
- 'pip install --disable-pip-version-check --user --upgrade pip'
55+
# install tox
56+
- pip install tox
57+
# install of the actual project is handled by tox in tests
58+
test_script:
59+
# run tox tests
60+
- '%PYTHON_HOME%\Scripts\tox -e %TOXENV%'
61+
62+
after_test:
63+
- cmd: '%PYTHON_HOME%\Scripts\tox -e codecov || (echo "codecov failed :(" && cmd /c "exit /b 0")'
64+
on_failure:
65+
- ps: dir "env:"
66+
- ps: get-content .tox\*\log\*
67+
artifacts:
68+
- path: .coverage
69+
- path: dist\*
70+
71+
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
72+
# on_finish:
73+
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

0 commit comments

Comments
 (0)