1
1
# Appveyor, continuous integration for Windows
2
2
# Most of the config comes from:
3
- # * https://github.com/nedbat/coveragepy/blob/master/appveyor.yml
4
- # * https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml
3
+ # * https://gitlab.com/betse/betse/raw/master/appveyor.yml
5
4
6
5
version : ' {branch}-{build}'
7
6
@@ -19,43 +18,39 @@ skip_branch_with_pr: true
19
18
20
19
environment :
21
20
22
- CMD_IN_ENV : " cmd /E:ON /V:ON /C .\\ ci\\ run_with_env.cmd"
23
-
24
- # Parallel pytest gets tangled up with tests that try to create and destroy
25
- # .pth files in the shared virtualenv. Disable parallel tests.
26
- PYTEST_ADDOPTS : " -n 0"
27
-
28
21
matrix :
29
22
- JOB : " 2.7 32-bit"
30
23
TOXENV : " py27"
31
24
PYTHON : " C:\\ Python27.11"
32
25
PYTHON_ARCH : " 32"
26
+ MINICONDA_DIRNAME : " C:\\ Miniconda"
33
27
34
28
- JOB : " 3.6 64-bit"
35
29
TOXENV : " py36"
36
30
PYTHON : " C:\\ Python36-x64"
37
31
PYTHON_ARCH : " 64"
32
+ MINICONDA_DIRNAME : " C:\\ Miniconda36-x64"
38
33
39
34
init :
40
- - " ECHO %TOXENV%"
35
+ - " ECHO %TOXENV% %PYTHON_VERSION% %MINICONDA_DIRNAME% "
41
36
42
37
install :
43
- - cinst graphviz
44
- # Prepend Python to the PATH of this build (this cannot be
45
- # done from inside the powershell script as it would require to restart
46
- # the parent CMD process).
47
- - " SET PATH=%PYTHON%;%PYTHON% \\ Scripts;%PATH% "
38
+ # Make sure that python and python-related scripts are run from miniconda-specific
39
+ # python installation
40
+ - cmd : set "PATH=%MINICONDA_DIRNAME%;%MINICONDA_DIRNAME%\\Scripts;%PATH%"
41
+ - cmd : conda config --set always_yes true
42
+ - cmd : conda info --all
48
43
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)\" "
44
+ # Create and configure an empty Anaconda environment specific to this Python version.
45
+ - cmd : conda create --quiet --name conda-env-%PYTHON_VERSION% python=%PYTHON_VERSION%
46
+ - cmd : activate conda-env-%PYTHON_VERSION%
47
+ - cmd : conda config --add channels anaconda
48
+ - cmd : conda install --quiet --file requirements-conda.txt
49
+ - cmd : python setup.py develop
52
50
53
- # Upgrade to the latest version of pip to avoid it displaying warnings
54
- # about it being out of date.
55
- - " python -m pip install --upgrade pip"
56
- - " python -m pip install --upgrade tox"
57
51
52
+ # Tell AppVeyor this is not .NET project
58
53
build : off
59
54
60
55
test_script :
61
- - tox
56
+ - py.test -vvv test
0 commit comments