forked from snipsco/snips-nlu-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
30 lines (26 loc) · 1.06 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
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
branches:
only:
- develop
- master
install:
- if "%APPVEYOR_REPO_BRANCH%" == "develop" if NOT "%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH:~0,5%" == "main/" appveyor exit
- 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
- echo [workspace] > Cargo.toml
- echo members = [ >> Cargo.toml
- echo "snips-nlu-ffi", >> Cargo.toml
- echo "snips-nlu-ffi/python/snips-nlu-python-ffi", >> Cargo.toml
- echo "snips-nlu-lib", >> Cargo.toml
- echo ] >> Cargo.toml
- ps: (Get-Content snips-nlu-ffi/python/snips-nlu-python-ffi/Cargo.toml) | ForEach-Object { $_ -replace "^snips-nlu-ffi = .*$", "snips-nlu-ffi = { path = `"../..`" }" } | Set-Content snips-nlu-ffi/python/snips-nlu-python-ffi/Cargo.toml
build: false
test_script:
- cargo build --all --tests --benches
- cargo test --all