summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-07-16 22:20:29 +0200
committerLinus Färnstrand <linus@mullvad.net>2018-09-19 18:19:18 +0200
commit2163b5e9507d7ad0c3cfd16bb6e06136522116c0 (patch)
tree01a22f1970a650b28d0b7c7e6038bdb38c937b5f
parent904a9ac1690c7d968197c9d1714fd3f2e83aab31 (diff)
downloadmullvadvpn-2163b5e9507d7ad0c3cfd16bb6e06136522116c0.tar.xz
mullvadvpn-2163b5e9507d7ad0c3cfd16bb6e06136522116c0.zip
Add C++ caching to AppVeyor
-rw-r--r--appveyor.yml16
-rw-r--r--build_windows_modules.sh2
2 files changed, 13 insertions, 5 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 686e4ea1f3..4723b3fbab 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,11 +1,16 @@
# Based on the "trust" template v0.1.1
# https://github.com/japaric/trust/tree/v0.1.1
-image:
-- Visual Studio 2017
-
+image: Visual Studio 2017
platform:
-- x64
+ - x64
+
+cache:
+ - windows\nsis-plugins\bin
+ - windows\windns\bin
+ - windows\winfw\bin
+ - windows\winroute\bin
+ - .mtime_cache
environment:
global:
@@ -47,11 +52,12 @@ install:
- rustc --print cfg
- cargo -V
- git submodule update --init
+ - ruby ci/mtime_cache windows/**/*.{cpp,h} --verbose --cache .mtime_cache/cache.json
# This is the "test phase", tweak it as you see fit
test_script:
- ps: . .\env.ps1
- - bash -x build_windows_modules.sh
+ - bash -x build_windows_modules.sh --dev-build
- cargo build
- cargo test
diff --git a/build_windows_modules.sh b/build_windows_modules.sh
index 9121a07e0e..9bfb8c70b7 100644
--- a/build_windows_modules.sh
+++ b/build_windows_modules.sh
@@ -20,6 +20,8 @@ function clean_solution
if [[ -z "${DEV_BUILD+x}" ]]; then
# Clean all intermediate and output files
rm -r $path/bin/* || true
+ else
+ echo "Will NOT clean intermediate files in $path/bin/"
fi
}