forked from ibell/pdsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
69 lines (57 loc) · 2.02 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
# Not a .NET project, we build PDSim in the install step instead
build: false
# Taken from SpiceyPy with some modification
environment:
global:
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\windows_sdk.cmd"
TWINE_PASSWORD:
secure: JjNZdPH3xLhd2obfOsF5YA==
TWINE_USERNAME: belli
matrix:
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
ARCH: "64"
PLAT_NAME: "win-amd64"
PY_TAG: "cp27"
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
ARCH: "64"
PLAT_NAME: "win-amd64"
PY_TAG: "cp36"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
ARCH: "64"
PLAT_NAME: "win-amd64"
PY_TAG: "cp37"
platform:
-x64
install:
# Log out the python version just so we know it
- ECHO "%PYTHON_VERSION%"
# update path to use installed pip
- set PATH=%PYTHON%\\scripts;%PATH%
# Download things we absolutely need
- pip install wheel twine six numpy wxpython cython h5py matplotlib
- pip install --pre --trusted-host www.coolprop.dreamhosters.com --find-links http://www.coolprop.dreamhosters.com/binaries/Python/ -U --force-reinstall CoolProp
# Now install PDSim
- "%PYTHON%/python setup.py install"
- ECHO "Installed PDSim"
test_script:
- "cd examples && %PYTHON%/python simple_example.py"
- "%PYTHON%/python -c \"import PDSim; print(PDSim.__git_revision__)\""
after_test:
- ECHO "DONE!"
- ECHO "BUILDING WHEELS..."
- cd ..
- "%PYTHON%/python setup.py bdist_wheel --plat-name=%PLAT_NAME%"
artifacts:
- path: dist\*
name: pypi_artifacts
# Thanks to https://github.com/AndrewAnnex/SpiceyPy/blob/master/appveyor.yml
deploy_script:
- echo "Starting Artifact Deployment"
# upload to pypi for windows
- set PATH=%BK_PATH%
- set HOME=%USERPROFILE%
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true") { Invoke-Expression "twine upload --verbose --skip-existing dist/*.whl" 2>$null } Else { write-output "Not on a tag, won't deploy to pypi"}
- echo "Finished Artifact Deployment to PYPI"