diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-01-16 14:11:13 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-01-17 15:43:39 +0100 |
| commit | d8c5052fd5a9dc037a089186387442381836f422 (patch) | |
| tree | fb4190a17158a9aba8cb63b256d2ac4c29b5f298 | |
| parent | 2d57b32290d72040f410d985e4445d065b0bf53e (diff) | |
| download | mullvadvpn-d8c5052fd5a9dc037a089186387442381836f422.tar.xz mullvadvpn-d8c5052fd5a9dc037a089186387442381836f422.zip | |
Add appveyor.yml
| -rw-r--r-- | appveyor.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000..d5407f5b3a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,55 @@ +# Based on the "trust" template v0.1.1 +# https://github.com/japaric/trust/tree/v0.1.1 + +environment: + global: + # TODO This is the Rust channel that build jobs will use by default but can be + # overridden on a case by case basis down below + RUST_VERSION: stable + + # TODO These are all the build jobs. Adjust as necessary. Comment out what you + # don't need + matrix: + # MinGW + - TARGET: i686-pc-windows-gnu + - TARGET: x86_64-pc-windows-gnu + + # MSVC + - TARGET: i686-pc-windows-msvc + - TARGET: x86_64-pc-windows-msvc + + # Testing other channels + - TARGET: x86_64-pc-windows-gnu + RUST_VERSION: nightly + - TARGET: x86_64-pc-windows-msvc + RUST_VERSION: nightly + +install: + - ps: >- + If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') { + $Env:PATH += ';C:\msys64\mingw64\bin' + } ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') { + $Env:PATH += ';C:\msys64\mingw32\bin' + } + - curl -sSf -o rustup-init.exe https://win.rustup.rs/ + - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% + - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - rustc -Vv + - cargo -V + +# TODO This is the "test phase", tweak it as you see fit +test_script: + # we don't run the "test phase" when doing deploys + - if [%APPVEYOR_REPO_TAG%]==[false] ( + cargo build --target %TARGET% && echo "DEBUG BUILD DONE" && + cargo build --target %TARGET% --release && echo "RELEASE BUILD DONE" && + cargo test --target %TARGET% && echo "DEBUG TESTING DONE" && + cargo test --target %TARGET% --release && echo "RELEASE TESTING DONE" + ) + +notifications: + - provider: Email + on_build_success: false + +# disable automatic builds +build: false |
