This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
appveyor.yml
56 lines (50 loc) · 2.09 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
environment:
global:
PYTHON: "C:\\conda"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
matrix:
- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.4"
- PYTHON_VERSION: "3.5"
- PYTHON_VERSION: "3.6"
platform:
-x64
install:
- if "%PYTHON_VERSION%" == "3.4" set "BASE_PYTHON_VERSION=3"
- if "%PYTHON_VERSION%" == "3.5" set "BASE_PYTHON_VERSION=35"
- if "%PYTHON_VERSION%" == "3.6" set "BASE_PYTHON_VERSION=3"
- if "%PYTHON_ARCH%" == "64" set "ARCH_LABEL=-x64"
# These are already installed on appveyor. Update them.
- set "CONDA_ROOT=C:\Miniconda%BASE_PYTHON_VERSION%%ARCH_LABEL%"
# we can't "activate root" with sufficiently-old conda which appveyor has (?)
# - "%CONDA_ROOT%\\Scripts\\activate root"
- set "PATH=%CONDA_ROOT%;%CONDA_ROOT%\Scripts;%CONDA_ROOT%\Library\bin;%PATH%"
- set PATH
- echo CONDA_PREFIX %CONDA_PREFIX%
- conda config --set always_yes yes
# upgrade (or downgrade) to our pinned conda version
- conda install -n root -q conda=4.1.12
# activate with newer conda, may set different variables
- "%CONDA_ROOT%\\Scripts\\activate root"
- echo CONDA_PREFIX %CONDA_PREFIX%
- conda info -a
- conda create -q -n test-environment python=%PYTHON_VERSION% pip pycrypto bcrypt notebook bokeh ruamel_yaml anaconda-client requests beautifulsoup4 tornado coverage pytest pytest-cov
# Not a .NET project, we build in the install step instead
build: false
test_script:
- echo CONDA_PREFIX %CONDA_PREFIX%
- "%CONDA_ROOT%\\Scripts\\activate test-environment"
- echo CONDA_PREFIX %CONDA_PREFIX%
- echo PATH %PATH%
- pip install pep257 yapf==0.6.2 pytest-xdist flake8==2.6.2
- conda install -y -q -c conda-forge keyring
- conda list
- conda info -a
- python -c "import sys; print(sys.version)"
- python -c "import sys; print(sys.executable)"
- python -c "import sys; print(sys.prefix)"
- python --version
- python setup.py test