forked from conda/constructor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
66 lines (57 loc) · 2.06 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
# https://ci.appveyor.com/project/ContinuumAnalyticsFOSS/constructor
branches:
only:
- master
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: "3.6"
CONDA_CANARY: "false"
- PYTHON_VERSION: "2.7"
CONDA_CANARY: "false"
- PYTHON_VERSION: "2.7"
CONDA_CANARY: "true"
matrix:
allow_failures:
- PYTHON_VERSION: "2.7"
CONDA_CANARY: "true"
platform:
-x64
cache:
- "C:\\condacache\\pkgs"
install:
# Astropy ci-helpers. See https://github.com/astropy/ci-helpers
- "git clone git://github.com/astropy/ci-helpers.git"
- if "%PYTHON_VERSION%" == "3.5" set "BASE_PYTHON_VERSION=35"
- if "%PYTHON_VERSION%" == "3.6" set "BASE_PYTHON_VERSION=36"
- if "%PYTHON_ARCH%" == "64" set "ARCH_LABEL=-x64"
# These are already installed on appveyor
- set "CONDA_ROOT=C:\Miniconda%BASE_PYTHON_VERSION%%ARCH_LABEL%"
- set "PATH=%CONDA_ROOT%;%CONDA_ROOT%\Scripts;%CONDA_ROOT%\Library\bin;%PATH%"
- "conda config --set always_yes yes"
- "conda update conda -q --no-pin"
- "%CONDA_ROOT%\\Scripts\\activate"
- "conda config --add pkgs_dirs C:\\condacache\\pkgs"
# Install run dependencies
- "conda install nsis pillow>=3.1 ruamel_yaml"
# Install test dependencies
- "conda install pytest pytest-cov"
# Install this package
- "python setup.py develop"
# Install conda canary before running tests, ensure conda is updated
- conda init
- if "%CONDA_CANARY%" == "true" conda update conda -c conda-canary --no-pin
- if "%CONDA_CANARY%" == "false" conda update conda --no-pin
- "%CONDA_ROOT%\\Scripts\\activate root"
- "conda info"
- "conda list"
# Not a .NET project, we build in the install step instead
build: false
test_script:
- "%CMD_IN_ENV% pytest --cov=constructor constructor"
- "%CMD_IN_ENV% python scripts\\run_examples.py"