environment:
global:
GH_TOKEN:
secure: Plf6CbvLc5BWpB51EU9Sk/RMow47fZp74uSKt1Wv20kFRf1OQS2pVuEzgXQPuyhW
PROJECT_NAME: safe_vault
RUST_BACKTRACE: 1
matrix:
- RUST_VERSION: stable
branches:
only:
- dev
- master
clone_depth: 1
skip_tags: true
cache:
- '%USERPROFILE%\.cargo'
- '%APPVEYOR_BUILD_FOLDER%\target'
install:
- ps: |
$url = "https://github.com/maidsafe/QA/raw/master/appveyor/install_rustup.ps1"
Invoke-WebRequest $url -OutFile "install_rustup.ps1"
. ".\install_rustup.ps1"
$commit_message = "$env:APPVEYOR_REPO_COMMIT_MESSAGE $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED"
if ($commit_message -match "[vV]ersion change to v?(.*)") {
$env:PROJECT_VERSION = $matches[1]
$env:DEPLOY = "true"
}
platform:
- x86
- x64
configuration:
- Release
build_script:
- cargo rustc --verbose --release --profile test --lib -- -Zno-trans
test_script:
- cargo test --verbose --release
before_deploy:
- ps: . ".\ci\appveyor\before_deploy.ps1"
deploy:
provider: GitHub
auth_token: $(GH_TOKEN)
artifact: /.*\.zip|.*\.exe/
draft: true
tag: $(PROJECT_VERSION)
on:
DEPLOY: true
RUST_VERSION: stable