-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Juergen Hasch
committed
Jul 9, 2022
1 parent
a9969ec
commit 18b69ff
Showing
2 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
version: '{branch}-{build}' | ||
# we can't use shallow_clone to fetch a zip archive instead of git clone | ||
# because 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: | ||
matrix: | ||
- TOXENV: 'py27-notebook' | ||
TOXPYTHON: C:\Python27\python.exe | ||
PYTHON_HOME: C:\Python27 | ||
PYTHON_VERSION: '2.7' | ||
PYTHON_ARCH: '32' | ||
- TOXENV: 'py33-notebook' | ||
TOXPYTHON: C:\Python33\python.exe | ||
PYTHON_HOME: C:\Python33 | ||
PYTHON_VERSION: '3.3' | ||
PYTHON_ARCH: '32' | ||
- TOXENV: 'py34-notebook40' | ||
TOXPYTHON: C:\Python34\python.exe | ||
PYTHON_HOME: C:\Python34 | ||
PYTHON_VERSION: '3.4' | ||
PYTHON_ARCH: '32' | ||
- TOXENV: 'py34-notebook41' | ||
TOXPYTHON: C:\Python34\python.exe | ||
PYTHON_HOME: C:\Python34 | ||
PYTHON_VERSION: '3.4' | ||
PYTHON_ARCH: '32' | ||
- TOXENV: 'py34-notebook4x' | ||
TOXPYTHON: C:\Python34\python.exe | ||
PYTHON_HOME: C:\Python34 | ||
PYTHON_VERSION: '3.4' | ||
PYTHON_ARCH: '32' | ||
- TOXENV: 'py35-notebook' | ||
TOXPYTHON: C:\Python35\python.exe | ||
PYTHON_HOME: C:\Python35 | ||
PYTHON_VERSION: '3.5' | ||
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. | ||
- '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%' | ||
|
||
after_test: | ||
- cmd: '%PYTHON_HOME%\Scripts\tox -e codecov || (echo "codecov failed :(" && cmd /c "exit /b 0")' | ||
on_failure: | ||
- 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')) |