-
Notifications
You must be signed in to change notification settings - Fork 31
/
.appveyor.yml
80 lines (63 loc) · 2.36 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
version: "{build}-{branch}"
pull_requests:
do_not_increment_build_number: true
branches:
except:
- gh-pages
build: off # run in 'script' mode, since we don't need any VisualStudio stuff
# The following is based on the python-appveyor-demo by Olivier Grisel (ogrisel)
# Source: https://github.com/ogrisel/python-appveyor-demo
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
PYPI_PASSWORD:
secure: RiEtWWbwT/PhNWGFmBJZQvuOalat5UgYWSQAhBvgEJY=
matrix:
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PY_SHORT_VER: "3.6"
PY_TAG: "cp36"
PYTHON_ARCH: "64"
PLAT_NAME: "win-amd64"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PY_SHORT_VER: "3.7"
PY_TAG: "cp37"
PYTHON_ARCH: "64"
PLAT_NAME: "win-amd64"
- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8.x"
PY_SHORT_VER: "3.8"
PY_TAG: "cp38"
PYTHON_ARCH: "64"
PLAT_NAME: "win-amd64"
init:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
install:
- "python --version"
- "python -m pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html"
- "python -m pip install -e .[appveyor]"
test_script:
- pytest -m "not slow and not extra"
after_test:
- "python setup.py bdist_wheel --plat-name=%PLAT_NAME% --python-tag=%PY_TAG%"
deploy_script:
- echo "Starting Artifact Deployment"
- echo [pypi] > %USERPROFILE%\\.pypirc
- echo username=PIQuIL >> %USERPROFILE%\\.pypirc
- echo password=%PYPI_PASSWORD% >> %USERPROFILE%\\.pypirc
- set PATH=%BK_PATH%
- set HOME=%USERPROFILE%
- IF "%APPVEYOR_REPO_TAG%" == "true" ( IF "%APPVEYOR_REPO_BRANCH%" == "master" ( python -m pip install twine && twine upload --skip-existing dist/*.whl ) ) ELSE ( echo "Not a tagged commit on master branch, skipping PyPI deploy" )
- echo "Finished Deployment step"
artifacts:
- path: "dist\\*.whl"
name: Wheels
notifications:
- provider: Slack
incoming_webhook:
secure: dRx8zMz2tXX6Ba5mKakDpe1PijnGa31UAD6Weezn76R2wYX5+IVe6u/7t3yfBrIOCEo1ZqE7ZBv/V7SMn2xqdOoYAWEKCXfAy3uKXwuDYHg=
channel: '#builds'