| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
environment: |
| 5 |
global: |
| 6 |
RUST_VERSION: stable |
| 7 |
CRATE_NAME: rust-libxml |
| 8 |
|
| 9 |
matrix: |
| 10 |
- CHANNEL: stable |
| 11 |
ARCH: x86_64 |
| 12 |
TOOLCHAIN: msvc |
| 13 |
FEATURES: vcpkg |
| 14 |
VCPKG_DEFAULT_TRIPLET: x64-windows |
| 15 |
VCPKGRS_DYNAMIC: 1 |
| 16 |
TARGET: x86_64-pc-windows-msvc |
| 17 |
|
| 18 |
install: |
| 19 |
- vcpkg install libxml2 |
| 20 |
- curl -sSf -o rustup-init.exe https://win.rustup.rs/ |
| 21 |
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% |
| 22 |
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin |
| 23 |
- rustc -Vv |
| 24 |
- cargo -V |
| 25 |
|
| 26 |
test_script: |
| 27 |
- if [%APPVEYOR_REPO_TAG%]==[false] ( |
| 28 |
cargo build --target %TARGET% && |
| 29 |
cargo test --target %TARGET% |
| 30 |
) |
| 31 |
|
| 32 |
cache: |
| 33 |
- '%USERPROFILE%\.cargo\registry' |
| 34 |
- C:\tools\vcpkg\installed |
| 35 |
- target |
| 36 |
|
| 37 |
branches: |
| 38 |
only: |
| 39 |
- master |
| 40 |
|
| 41 |
notifications: |
| 42 |
- provider: Email |
| 43 |
on_build_success: false |
| 44 |
|
| 45 |
|
| 46 |
build: false |