build: false
max_jobs: 3
environment:
global:
RUST_VERSION: stable
CRATE_NAME: graphannis
matrix:
- TARGET: x86_64-pc-windows-msvc
install:
- ps: >-
If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
$Env:PATH += ';C:\msys64\mingw64\bin'
} ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
$Env:PATH += ';C:\msys64\mingw32\bin'
}
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
test_script:
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo build --target %TARGET% --release --all-features &&
cargo test --target %TARGET% --release --all-features &&
appveyor-retry appveyor DownloadFile https://github.com/amir-zeldes/gum/archive/f8ac9944fae39ae37c4db186304e3c1ab41f77f3.zip -FileName gum.zip &&
7z e gum.zip -orelannis\GUM -aoa &&
appveyor-retry appveyor DownloadFile http://angcl.ling.uni-potsdam.de/resources/pcc2.1_annis.zip -FileName pcc21.zip &&
7z e pcc21.zip -orelannis\pcc2.1 -aoa &&
target\%TARGET%\release\annis.exe data --cmd "import relannis/GUM" &&
target\%TARGET%\release\annis.exe data --cmd "import relannis/pcc2.1" &&
cargo test --release -- --ignored
)
build_script:
- cargo build --target %TARGET% --release --features "c-api"
artifacts:
- path: target\$(TARGET)\release\graphannis.dll
name: graphannis.dll
deploy:
artifact: graphannis.dll
tag: $(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: zmvMxlwpu6ZdXYp4Q1h2sj1Vzcf2TUkkrf9sJAdezJ/wD2IRYvFsjRm7slLdati9
description: ''
draft: true
on:
RUST_VERSION: stable
appveyor_repo_tag: true
provider: GitHub
cache:
- C:\Users\appveyor\.cargo\registry
- target
branches:
only:
- /^v\d+\.\d+\.\d+.*$/
- /^release/.+/
- develop
notifications:
- provider: Email
on_build_success: false