2019-01-16 22:27:09 +00:00
|
|
|
version: "{build} ~ {branch}"
|
|
|
|
|
|
|
|
os: Visual Studio 2017
|
|
|
|
|
2019-02-14 23:30:42 +00:00
|
|
|
# Do not build feature branch with open Pull Requests
|
|
|
|
skip_branch_with_pr: true
|
|
|
|
|
2019-01-16 22:27:09 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- CHANNEL: stable
|
|
|
|
ARCH: x86_64
|
2019-02-08 21:51:29 +00:00
|
|
|
ABI: msvc
|
|
|
|
TARGET: x86_64-pc-windows-msvc
|
2019-01-16 22:27:09 +00:00
|
|
|
|
2019-02-20 23:42:07 +00:00
|
|
|
cache:
|
|
|
|
- 'C:\Users\appveyor\.cargo'
|
|
|
|
|
2019-01-16 22:27:09 +00:00
|
|
|
install:
|
2019-02-08 21:51:29 +00:00
|
|
|
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
|
|
- rustup-init.exe -yv --default-host %target%
|
|
|
|
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
2019-01-16 22:27:09 +00:00
|
|
|
- rustc -vV
|
|
|
|
- cargo -vV
|
2019-02-25 22:48:39 +00:00
|
|
|
# Install InnoSetup
|
|
|
|
- appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-08-22-is.exe
|
|
|
|
- 2017-08-22-is.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
|
|
|
|
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
|
2019-01-16 22:27:09 +00:00
|
|
|
|
|
|
|
build_script:
|
2019-02-08 21:51:29 +00:00
|
|
|
- cargo build --verbose
|
2019-01-16 22:27:09 +00:00
|
|
|
|
|
|
|
test_script:
|
2019-02-08 21:51:29 +00:00
|
|
|
- set RUST_BACKTRACE=1
|
2019-02-14 17:58:33 +00:00
|
|
|
- cd ./lib/spectests && cargo test -- --test-threads 1 && cd ../..
|
|
|
|
|
2019-02-14 23:30:42 +00:00
|
|
|
before_deploy:
|
2019-02-20 21:58:30 +00:00
|
|
|
- cd ./src/installer
|
2019-02-14 23:30:42 +00:00
|
|
|
- iscc wasmer.iss
|
2019-02-20 21:58:30 +00:00
|
|
|
- copy /y .\WasmerInstaller.exe ..\..\WasmerInstaller-%APPVEYOR_REPO_TAG_NAME%.exe
|
2019-02-14 23:30:42 +00:00
|
|
|
- appveyor PushArtifact WasmerInstaller-%APPVEYOR_REPO_TAG_NAME%.exe
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: WasmerInstaller-%APPVEYOR_REPO_TAG_NAME%.exe
|
|
|
|
name: WasmerInstaller.exe
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
description: 'WasmerInstaller'
|
|
|
|
artifact: /.*\.exe/
|
|
|
|
auth_token:
|
|
|
|
secure: CaKtncy7S1PWxzDUQ0p2264pe3HwxzDn5VIyRizDaa72/SVfskNcoMjwwRh0ut22
|
|
|
|
provider: GitHub
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
appveyor_repo_tag: true
|