bat/appveyor.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2018-08-29 17:39:51 +02:00
environment:
global:
TARGET: x86_64-pc-windows-msvc
2018-08-31 20:23:21 +02:00
RUST_VERSION: stable
2018-08-29 17:39:51 +02:00
CRATE_NAME: bat
CARGO_HOME: "c:\\cargo"
RUSTUP_HOME: "c:\\rustup"
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
2020-04-24 16:28:35 +02:00
- rustup-init.exe -y --default-host %TARGET% --profile minimal
2018-08-29 17:39:51 +02:00
- set PATH=%PATH%;C:\cargo\bin
- rustc -Vv
- cargo -V
2018-08-31 20:23:21 +02:00
2018-08-29 17:39:51 +02:00
build: false
2018-08-30 03:23:00 +02:00
test_script:
2018-08-30 16:02:54 +02:00
- cargo test --target %TARGET% --verbose
- cargo run --target %TARGET% -- src/bin/bat/main.rs README.md --paging=never
2018-08-29 17:39:51 +02:00
before_deploy:
# Generate artifacts for release
2019-10-06 10:03:54 +02:00
- cargo build --bins --release --verbose
2018-08-29 17:39:51 +02:00
- ps: ci\before_deploy.ps1
deploy:
description: 'Automatically deployed release'
artifact: /.*\.zip/
2018-08-30 16:45:33 +02:00
# Here's how:
# - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
# `public_repo` scope enabled
# - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.
# - Enter the "encrypted value" below
2018-08-31 20:23:21 +02:00
auth_token:
secure: oO4/J+hcFXgXcEqEc8gzlQNqLG0IxU78s4EyH+uczGdsyWajb3yipxPR6nXUvmoj
2018-08-29 17:39:51 +02:00
provider: GitHub
on:
RUST_VERSION: stable
appveyor_repo_tag: true
2018-08-31 20:23:21 +02:00
2018-08-29 17:39:51 +02:00
cache:
- C:\Users\appveyor\.cargo\registry
- target
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
2018-08-31 20:23:21 +02:00
on_build_status_changed: false