This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
75 lines (65 loc) · 2.53 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
# vim ft=yaml
# CI on Windows via appveyor
environment:
global:
BUILD_COMMIT: master
REPO_DIR: atom
PACKAGE_NAME: atom
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
WHEELHOUSE_UPLOADER_SECRET:
secure: 9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
matrix:
- PYTHON: C:\Python27
- PYTHON: C:\Python27-x64
- PYTHON: C:\Python34
- PYTHON: C:\Python34-x64
- PYTHON: C:\Python35
- PYTHON: C:\Python35-x64
- PYTHON: C:\Python36
- PYTHON: C:\Python36-x64
install:
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python -m pip install -U pip
# Fix MSVC builds for 64-bit Python. See:
# http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
# Pin wheel to 0.26 to avoid Windows ABI tag for built wheel
- pip install wheel==0.26
# Build wheel
- cd %REPO_DIR%
- git submodule update --init
- git checkout %BUILD_COMMIT%
- python setup.py bdist_wheel
- cd ..
build: false # Not a C# project, build stuff at the test step instead.
test_script:
# Install with dependencies
- pip install --pre --find-links .\%REPO_DIR%\dist %PACKAGE_NAME%
# Make absolutely sure we're installing the local wheel
- pip uninstall -y %PACKAGE_NAME%
- pip install --no-cache-dir --pre --no-index --find-links .\%REPO_DIR%\dist %PACKAGE_NAME%
- pip install pytest
# Change into an innocuous directory and find tests from installation
- mkdir for_testing
- cd for_testing
- python --version
- py.test ..\%REPO_DIR%
- cd ..
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: $(REPO_DIR)\dist\*
on_success:
# Upload the generated wheel package to Rackspace
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
# disable the ssl checks.
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --no-update-index --no-ssl-check --local-folder=%REPO_DIR%\dist wheels
cache:
# Use the appveyor cache to avoid re-downloading large archives such
# the MKL numpy and scipy wheels mirrored on a rackspace cloud
# container, speed up the appveyor jobs and reduce bandwidth
# usage on our rackspace account.
- '%APPDATA%\pip\Cache'