-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
appveyor.yml
126 lines (101 loc) · 3.72 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
# AppVeyor.com is a Continuous Integration service to build and run tests under Windows
# This yml file was made in part by looking at the yml files for conda and astropy.
# This is not a .NET project, so we build SpiceyPy in the install step.
build: off
environment:
global:
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\windows_sdk.cmd"
matrix:
- PYTHON: "C:\\Python27"
CONDA: "C:\\Miniconda"
CONDA_BUILDS: C:\\Miniconda\conda-bld\win-32\
PYTHON_VERSION: "2.7.x"
ARCH: "32"
PLAT_NAME: "win32"
PY_TAG: "cp27"
- PYTHON: "C:\\Python27-x64"
CONDA: "C:\\Miniconda-x64"
CONDA_BUILDS: C:\\Miniconda-x64\conda-bld\win-64\
PYTHON_VERSION: "2.7.x"
ARCH: "64"
PLAT_NAME: "win-amd64"
PY_TAG: "cp27"
- PYTHON: "C:\\Python34"
CONDA: "C:\\Miniconda3"
CONDA_BUILDS: C:\\Miniconda3\conda-bld\win-32\
PYTHON_VERSION: "3.4.x"
ARCH: "32"
WINDOWS_SDK_VERSION: "v7.1"
PLAT_NAME: "win32"
PY_TAG: "cp34"
- PYTHON: "C:\\Python34-x64"
CONDA: "C:\\Miniconda3-x64"
CONDA_BUILDS: C:\\Miniconda3-x64\conda-bld\win-amd64\
PYTHON_VERSION: "3.4.x"
ARCH: "64"
WINDOWS_SDK_VERSION: "v7.1"
PLAT_NAME: "win-amd64"
PY_TAG: "cp34"
- PYTHON: "C:\\Python35"
CONDA: "C:\\Miniconda35"
CONDA_BUILDS: C:\\Miniconda35\conda-bld\win-32\
PYTHON_VERSION: "3.5.x"
ARCH: "32"
WINDOWS_SDK_VERSION: "v7.1"
PLAT_NAME: "win32"
PY_TAG: "cp35"
- PYTHON: "C:\\Python35-x64"
CONDA: "C:\\Miniconda35-x64"
CONDA_BUILDS: C:\\Miniconda35-x64\conda-bld\win-amd64\
PYTHON_VERSION: "3.5.x"
ARCH: "64"
WINDOWS_SDK_VERSION: "v7.1"
PLAT_NAME: "win-amd64"
PY_TAG: "cp35"
platform:
- x64
cache:
- C:\Users\appveyor\Downloads -> setup.py
install:
# Log out the python version just so we know it
- ECHO "%PYTHON_VERSION%"
- set BK_PATH=%PATH%
# Do Conda things first
- set PATH=%CONDA%;%CONDA%\\Scripts;%PATH%
# try conda things
- "conda install conda-build -y -q"
- "conda build appveyor -q -b"
- ps: mkdir .\dist\
- cmd: xcopy "%CONDA_BUILDS%"\*.tar.bz2 dist\ /e /f
- dir dist
# Set back path
- set PATH=%BK_PATH%
# update path to use installed pip
- set PATH=%PYTHON%\\scripts;%PATH%
# Download things we absolutly need
# - pip install --upgrade pip
- pip install wheel twine
- pip install six pytest
# coveralls and or coverage fail to install for 3.4 64bit python builds so don't bother for now.
# Check for numpy wheel, compile if absent
- "powershell appveyor\\install_numpy.ps1"
# Now install numpy from pre-built wheel. This may be fragile.
- "%WITH_COMPILER% pip install --use-wheel --no-index --find-links=c:\\Users\\appveyor\\Downloads numpy"
#- "%WITH_COMPILER% pip install --no-index --find-links=C:\\Users\\appveyor\\Downloads numpy"
#- "%WITH_COMPILER% pip install C:\\Users\\appveyor\\Downloads\\*.whl"
# Download CSPICE so we can build outside of python
- "%PYTHON%/python getspice.py"
# Now install spiceypy
- IF "%ARCH%"=="32" (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86) ELSE (ECHO "probably a 64bit build")
- IF "%ARCH%"=="64" (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64) ELSE (ECHO "probably a 32bit build")
- "%PYTHON%/python setup.py install"
- ECHO "Installed SpiceyPy!"
test_script:
- "%PYTHON%/Scripts/py.test spiceypy/tests"
after_test:
- ECHO "DONE!"
- dir
- ECHO "BUILDING WHEELS..."
- "%PYTHON%/python setup.py sdist bdist_wheel --plat-name=%PLAT_NAME% --python-tag=%PY_TAG%"
artifacts:
- path: dist\*