forked from snipsco/snips-nlu-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
84 lines (73 loc) · 2.22 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
environment:
matrix:
- PYTHON: "C:\\Python27-x64"
TARGET: x86_64-pc-windows-msvc
TAG_SCENARIO: true
- PYTHON: "C:\\Python36-x64"
TARGET: x86_64-pc-windows-msvc
TAG_SCENARIO: false
- PYTHON: "C:\\Python36-x64"
TARGET: x86_64-pc-windows-msvc
TAG_SCENARIO: true
- PYTHON: "C:\\Python37-x64"
TARGET: x86_64-pc-windows-msvc
TAG_SCENARIO: true
- PYTHON: "C:\\Python27"
TARGET: i686-pc-windows-msvc
TAG_SCENARIO: true
- PYTHON: "C:\\Python36"
TARGET: i686-pc-windows-msvc
TAG_SCENARIO: true
- PYTHON: "C:\\Python37"
TARGET: i686-pc-windows-msvc
TAG_SCENARIO: true
branches:
only:
- master
- /lts-.*/
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host %TARGET%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
- rustc -V
- cargo -V
- ps: (Get-Content python/ffi/Cargo.toml) | ForEach-Object { $_ -replace "^snips-nlu-utils = .*$", "snips-nlu-utils = { path = `"../..`" }" } | Set-Content python/ffi/Cargo.toml
- "%PYTHON%\\python.exe -m pip install -r python/requirements.txt"
build: false
test_script:
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" cargo test --verbose
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" cd python
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" %PYTHON%\\python.exe -m pip install -e .[test] --verbose
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" %PYTHON%\\python.exe -m unittest discover
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" cd ..
after_test:
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" appveyor exit
- ECHO "BUILDING WHEELS..."
- cd python
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- cd ..
artifacts:
- path: python\dist\*
name: pypiartifacts
deploy:
tag: $(APPVEYOR_REPO_TAG_NAME)
provider: GitHub
auth_token:
secure: Q6QElmu6htnldLRgDcG2J/BkmG3lFMKeqnYsb/o1bCHphWeDk6vJT+e5FRM4wB4d
artifact: pypiartifacts
on:
APPVEYOR_REPO_TAG: true
for:
-
# non-tagged scenario
matrix:
only:
- TAG_SCENARIO: false
skip_tags: true
-
# tagged scenario
matrix:
only:
- TAG_SCENARIO: true
skip_non_tags: true