2016-10-15 16:09:35 +02:00
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
PROJECT_NAME: watchexec
|
|
|
|
matrix:
|
|
|
|
- TARGET: x86_64-pc-windows-gnu
|
2016-11-15 23:19:15 +01:00
|
|
|
CHANNEL: stable
|
2016-10-15 16:09:35 +02:00
|
|
|
|
|
|
|
# Install Rust and Cargo
|
|
|
|
# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)
|
|
|
|
install:
|
|
|
|
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
|
2016-10-20 17:45:25 +02:00
|
|
|
- rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y
|
2016-10-15 16:09:35 +02:00
|
|
|
- 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
|
|
|
|
|
|
|
|
# ???
|
|
|
|
build: false
|
|
|
|
|
|
|
|
# Equivalent to Travis' `script` phase
|
|
|
|
test_script:
|
|
|
|
- cargo test --verbose
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
# Generate artifacts for release
|
|
|
|
- cargo build --release
|
|
|
|
- mkdir staging
|
|
|
|
- copy target\release\watchexec.exe staging
|
2018-08-21 05:12:00 +02:00
|
|
|
- copy LICENSE staging\LICENSE.txt
|
2016-10-15 16:09:35 +02:00
|
|
|
- cd staging
|
|
|
|
- 7z a ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *
|
|
|
|
- appveyor PushArtifact ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
description: 'Automatically deployed release'
|
|
|
|
artifact: /.*\.zip/
|
2018-08-21 05:12:00 +02:00
|
|
|
#auth_token:
|
|
|
|
# secure: OkayPFKJ16PAH15rWQBdEQDgd3tlNP/ZcssaunpK9AHU+t9zZlO5qvUAok1JT3lR
|
|
|
|
#provider: GitHub
|
|
|
|
provider: Webhook
|
|
|
|
url: https://example.com/goes-nowhere
|
2016-10-15 16:09:35 +02:00
|
|
|
on:
|
|
|
|
appveyor_repo_tag: true
|