summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-01-19 08:27:27 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-01-19 08:27:27 +0100
commit789b2ff929cf567cbf89628e487f656e00f08e3a (patch)
tree5c65be6fae6688f61e5c839569b720ee81843bdf
parent6a9a3f4d935e667ec58aec6b9503f34ff32bdba7 (diff)
parent88ffbb7885bc1ccd654ce5969438f585e2bc52c3 (diff)
downloadmullvadvpn-789b2ff929cf567cbf89628e487f656e00f08e3a.tar.xz
mullvadvpn-789b2ff929cf567cbf89628e487f656e00f08e3a.zip
Merge branch 'appveyor-setup'
-rw-r--r--.travis.yml4
-rw-r--r--appveyor.yml60
2 files changed, 64 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 5b9368c0b1..9f4dd6bb41 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,3 +19,7 @@ script:
- cargo build --verbose
- cargo test --verbose
- cargo fmt -- --write-mode=diff
+notifications:
+ email:
+ on_success: never
+ on_failure: never
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000000..17b572cd5f
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,60 @@
+# Based on the "trust" template v0.1.1
+# https://github.com/japaric/trust/tree/v0.1.1
+
+environment:
+ global:
+ # 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
+
+ # 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
+
+# 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"
+ )
+
+# Cache build binaries for faster builds next time
+cache:
+ - C:\Users\appveyor\.cargo\registry
+ - target
+
+# Stops feature branches from triggering two builds (One for branch and one for PR)
+skip_branch_with_pr: true
+
+# We build in the test stage, so disable Appveyor's build stage. This prevents
+# the "directory does not contain a project or solution file" error.
+build: false