aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Carter <Casey@Carter.net>2017-04-02 12:24:42 -0700
committerNeil MacIntosh <neilmac@microsoft.com>2017-04-02 12:24:42 -0700
commit33006026535d3664629585b67b852daeb6eaca9f (patch)
tree4428cc105d1fb86217c629ce2e4767e8823b7c5f
parent16a6a41690325433976d843e13ec676d6f9ab091 (diff)
downloadplatform_external_Microsoft-GSL-33006026535d3664629585b67b852daeb6eaca9f.tar.gz
platform_external_Microsoft-GSL-33006026535d3664629585b67b852daeb6eaca9f.tar.bz2
platform_external_Microsoft-GSL-33006026535d3664629585b67b852daeb6eaca9f.zip
CI updates incl. remove support for VS 2013.
* CI updates: Travis: use cmake 3.7 Appveyor: Add .appveyor.yml config, test VS2013/VS2015/VS2017 x86/x64 Debug/Release. * Drop VS2013 support from AppVeyor.
-rw-r--r--.travis.yml2
-rw-r--r--appveyor.yml48
2 files changed, 49 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 5c69187..53d110d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -93,7 +93,7 @@ install:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
if [[ -z "$(ls -A ${DEPS_DIR}/cmake/bin)" ]]; then
- CMAKE_URL="https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz"
+ CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
mkdir -p cmake && travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake
fi
export PATH="${DEPS_DIR}/cmake/bin:${PATH}"
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..5acfd11
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,48 @@
+shallow_clone: true
+
+platform:
+ - x86
+ - x64
+
+configuration:
+ - Debug
+ - Release
+
+image:
+ - Visual Studio 2015
+ - Visual Studio 2017
+
+cache:
+ - C:\cmake-3.7.2-win32-x86
+
+install:
+ - git clone --quiet --depth=1 https://github.com/Microsoft/unittest-cpp.git tests/unittest-cpp
+ - ps: |
+ if (![IO.File]::Exists("C:\cmake-3.7.2-win32-x86\bin\cmake.exe")) {
+ Start-FileDownload 'https://cmake.org/files/v3.7/cmake-3.7.2-win32-x86.zip'
+ 7z x -y cmake-3.7.2-win32-x86.zip -oC:\
+ }
+ $env:PATH="C:\cmake-3.7.2-win32-x86\bin;$env:PATH"
+
+before_build:
+ - ps: |
+ mkdir build
+ cd build
+ if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") {
+ $env:generator="Visual Studio 14 2015"
+ } else {
+ $env:generator="Visual Studio 15 2017"
+ }
+ if ($env:PLATFORM -eq "x64") {
+ $env:generator="$env:generator Win64"
+ }
+ echo generator="$env:generator"
+ cmake .. -G "$env:generator"
+
+build_script:
+ - cmake --build . --config %CONFIGURATION% -- /m /v:minimal
+
+test_script:
+ - ctest -j2
+
+deploy: off