forked from quiltdata/quilt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
79 lines (65 loc) · 1.88 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
67
68
69
70
71
72
73
74
75
76
77
78
image:
- Visual Studio 2015
- Visual Studio 2017
environment:
global:
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
TEST_REGISTRY: false
# Just copy paste these vars from .travis.yml , but they are un-use
FLASK_APP: quilt_server
FLASK_DEBUG: 1
QUILT_SERVER_CONFIG: dev_config.py
matrix:
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.0"
PYTHON_ARCH: "64"
TEST_REGISTRY: false
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.0"
PYTHON_ARCH: "64"
TEST_REGISTRY: false
# Enable this if want to use conda
#- PYTHON: "C:\\Miniconda3"
# PYTHON_VERSION: "3"
# PYTHON_ARCH: "64"
# TEST_REGISTRY: true
init:
- "ECHO %PYTHON_VERSION% %APPVEYOR_BUILD_NUMBER%"
#- "ECHO %APPVEYOR_BUILD_NUMBER%
install:
- echo $(python --version)
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "SET PATH=%TEST_REGISTRY%;%TEST_REGISTRY%\\Scripts;%PATH%"
- ps: |
if($env:PYTHON -match "conda")
{
conda update -y conda
conda create --yes -n quilt_env python=$QPYVER pip
#source activate quilt_env
pip install pytest
}
else
{
pip install --upgrade pip
pip install -U pip
pip install -U numpy pytest
}
- ECHO "Install quilt compiler"
- ps: pip install "$env:APPVEYOR_BUILD_FOLDER\compiler[tests]"
- ps: |
if($env:TEST_REGISTRY -match "true")
{
Write-Host "Install quilt registry"
pip install -r "$env:APPVEYOR_BUILD_FOLDER\\registry\\requirements.txt"
pip install "$env:APPVEYOR_BUILD_FOLDER\\registry"
}
build: off
test_script:
- ECHO "Test quilt compiler"
- ps: pytest "$env:APPVEYOR_BUILD_FOLDER\\compiler"
- ps: |
if($env:TEST_REGISTRY -match "true")
{
Write-Host "Test registry"
pytest "$env:APPVEYOR_BUILD_FOLDER\\registry"
}