forked from kif/pyFAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
134 lines (108 loc) · 3.89 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
# https://ci.appveyor.com/project/ESRF/pyFAI
version: 0.18.{build}
shallow_clone: true
build: false
notifications:
- provider: Email
to:
- silx-ci@edna-site.org
subject: '[CI] appveyor'
on_build_success: false
on_build_failure: false
on_build_status_changed: true
os:
- Visual Studio 2015
cache:
- '%LOCALAPPDATA%\pip\Cache'
image: Visual Studio 2017
environment:
global:
WIN_SDK_ROOT: "C:\\Program Files\\Microsoft SDKs\\Windows"
VENV_BUILD_DIR: "venv_build"
VENV_TEST_DIR: "venv_test"
matrix:
# Python 2.7
#- PYTHON_DIR: "C:\\Python27-x64"
# PYTHON_VERSION: "2.7.11"
# PYTHON_ARCH: "64"
# BUILD_ARGS: ""
# Python 3.5
- PYTHON_DIR: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.0"
PYTHON_ARCH: "64"
BUILD_ARGS: ""
# Python 3.6
- PYTHON_DIR: "C:\\Python36-x64"
#PYTHON_VERSION: "3.4.3"
PYTHON_ARCH: "64"
# Python 3.7
- PYTHON_DIR: "C:\\Python37-x64"
PYTHON_ARCH: "64"
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
# Add Python to PATH
- "SET PATH=%PYTHON_DIR%;%PYTHON_DIR%\\Scripts;%PATH%"
# Upgrade/install distribution modules
- "pip install --upgrade setuptools"
- "python -m pip install --upgrade pip"
# Install virtualenv
- "pip install --upgrade virtualenv"
- "virtualenv --version"
build_script:
# Create build virtualenv
- "virtualenv --clear %VENV_BUILD_DIR%"
- "%VENV_BUILD_DIR%\\Scripts\\activate.bat"
# Configure MSVC environment
# Python 3.3 x64 and Python 3.4 x64 need a special configuration
#- ps: >-
# If (($env:PYTHON_ARCH -eq "64") -And (($env:PYTHON_VERSION -Like "3.3.*") -Or ($env:PYTHON_VERSION -Like "3.4.*"))) {
# & "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Bin\\SetEnv.cmd" /x64
# }
# Install build dependencies
- "pip install --upgrade wheel"
- "pip install numpy cython --upgrade"
- "pip install scipy --upgrade --pre"
- "pip install silx"
- "pip install --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/ -r ci/requirements_appveyor.txt --upgrade"
# Print Python info
- "python ci\\info_platform.py"
- "pip list"
- "dir"
# Build
- "del pyFAI\\ext\\histogram.c"
- "python setup.py build %BUILD_ARGS%"
#- "python setup.py test"
- "python run_tests.py -m"
- "python setup.py bdist_wheel bdist_msi"
- ps: "ls dist"
# Install the generated wheel package to test it
- "pip install --pre --no-index --find-links dist/ pyFAI"
# Leave build virtualenv
- "%VENV_BUILD_DIR%\\Scripts\\deactivate.bat"
- "rmdir %VENV_BUILD_DIR% /s /q"
test_script:
# Create test virtualenv
- "virtualenv --clear %VENV_TEST_DIR%"
- "%VENV_TEST_DIR%\\Scripts\\activate.bat"
# Upgrade distribution modules
- "python -m pip install --upgrade pip"
- "pip install --upgrade setuptools wheel"
# Fix issue on setuptools ("python setup.py --name" used py run_tests.py)
- "pip install cython numpy scipy --upgrade --pre"
# Install other build dependencies
- "pip install --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/ -r ci/requirements_appveyor.txt --upgrade"
# Install the generated wheel package to test it
- "pip install --pre --find-links dist/ pyFAI"
# Print Python info
- "python ci\\info_platform.py"
- "pip list"
- "python run_tests.py --installed"
# Leave test virtualenv
- "%VENV_TEST_DIR%\\Scripts\\deactivate.bat"
- "rmdir %VENV_TEST_DIR% /s /q"
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*