forked from dlilien/ImpDAR
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
94 lines (81 loc) · 2.95 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
environment:
matrix:
# Python 2.7
- PYTHON: "C:\\Python27"
MINICONDA: C:\Miniconda
PYTHON_VERSION: 2.7
- PYTHON: "C:\\Python27-x64"
MINICONDA: C:\Miniconda-x64
PYTHON_VERSION: 2.7
# Commented out since tests were passing but build still failing.
# Python 3.5
# - PYTHON: "C:\\Python35"
# MINICONDA: C:\Miniconda35
# PYTHON_VERSION: 3.5
# - PYTHON: "C:\\Python35-x64"
# MINICONDA: C:\Miniconda35
# PYTHON_VERSION: 3.5
# Python 3.6
- PYTHON: "C:\\Python36"
MINICONDA: C:\Miniconda36
PYTHON_VERSION: 3.6
- PYTHON: "C:\\Python36-x64"
MINICONDA: C:\Miniconda36-x64
PYTHON_VERSION: 3.6
# Python 3.7
- PYTHON: "C:\\Python37"
MINICONDA: C:\Miniconda37
PYTHON_VERSION: 3.7
- PYTHON: "C:\\Python37-x64"
MINICONDA: C:\Miniconda37-x64
PYTHON_VERSION: 3.7
# Python 3.8
# - PYTHON: "C:\\Python38-x64"
# MINICONDA: C:\Miniconda38-x64
# PYTHON_VERSION: 3.8
PYPI_PASSWORD:
secure: G9v/9wFi36a/e93v1QiONiuQCxqQ9adFqUiFMdM/3W4=
matrix:
allow_failures:
- PYTHON_VERSION: 2.7
install:
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# - conda install -c conda-forge h5py
# - conda install -c anaconda msvc_runtime
# We need to install numpy, scipy and matplotlib through conda
- "conda create -c anaconda -q -n test-environment python=%PYTHON_VERSION% numpy scipy matplotlib nose pyqt"
- pip install segyio
- activate test-environment
- pip install msvc-runtime
- pip install mock
- pip install wheel twine six pytest
# give me a remote-login option to debug
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build: off
test_script:
- "python setup.py test"
after_test:
- "python setup.py bdist_wheel"
artifacts:
- path: dist\*
name: pypiartifacts
deploy_script:
- echo "Starting Artifact Deployment"
# populate pypirc file for twine
- echo [distutils] > %USERPROFILE%\\.pypirc
- echo index-servers = >> %USERPROFILE%\\.pypirc
- echo pypi >> %USERPROFILE%\\.pypirc
- echo [pypi] >> %USERPROFILE%\\.pypirc
- echo username=dlilien >> %USERPROFILE%\\.pypirc
- echo password=%PYPI_PASSWORD% >> %USERPROFILE%\\.pypirc
# upload to pypi for windows
- set PATH=%BK_PATH%
- set HOME=%USERPROFILE%
- ps: If ($env:APPVEYOR_REPO_BRANCH -eq "master") { Invoke-Expression "twine upload --skip-existing dist/*.whl" 2>$null } Else { write-output "Not on a tag on master, won't deploy to pypi"}
- echo "Finished Artifact Deployment"
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/3a0242522a806d39ba2b
method: POST