From 0593b827cfb372e2416cbb6c6ffa93d35ef3a37e Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 27 Mar 2019 22:35:06 -0400 Subject: [PATCH] add appveyor --- .appveyor.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 1 - README.md | 3 ++- 3 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..c0c7ad3 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,57 @@ +# Use the Appveyor build number for naming the build. +# src: https://www.appveyor.com/docs/build-configuration/#build-versioning +version: '{build}' +# see https://www.appveyor.com/docs/how-to/repository-shallow-clone/ +shallow_clone: true + +platform: x64 + +environment: + matrix: +# CMake + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 + VS: 2017 + CONFIG: Release + TEST: OFF + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 + VS: 2017 + CONFIG: Release + TEST: ON + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 + VS: 2017 + CONFIG: Debug + TEST: ON + + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 + VS: 2015 + CONFIG: Release + TEST: OFF + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 + VS: 2015 + CONFIG: Release + TEST: ON + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 + VS: 2015 + CONFIG: Debug + TEST: ON + +matrix: + fast_finish: false + +before_build: + # see https://www.appveyor.com/docs/lang/cpp/#visual-studio-2017 + - if "%VS%"=="2017" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" + - if "%VS%"=="2017" set CMAKE_GENERATOR="Visual Studio 15 2017 Win64" + # see https://www.appveyor.com/docs/lang/cpp/#visual-studio-2015 + - if "%VS%"=="2015" call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 + - if "%VS%"=="2015" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 + - if "%VS%"=="2015" set CMAKE_GENERATOR="Visual Studio 14 2015 Win64" + +build_script: + - cmake --version + - cmake -H. -Bbuild -DPHMAP_BUILD_TESTS=%TEST% -G %CMAKE_GENERATOR% + - cmake --build build --config %CONFIG% --target ALL_BUILD -- /maxcpucount + +test_script: + - if "%TEST%"=="ON" set CTEST_OUTPUT_ON_FAILURE=1 + - if "%TEST%"=="ON" cmake --build build --config %CONFIG% --target RUN_TESTS diff --git a/.travis.yml b/.travis.yml index eed52a0..7fc3273 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,7 +113,6 @@ matrix: env: COMPILER='clang++-5.0' CXX_FLAGS='-std=c++17' dist: trusty -sudo: false script: mkdir build && cd build && cmake -DPHMAP_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=${COMPILER} -DCXXFLAGS="${CXX_FLAGS}" .. && cmake --build . && make test diff --git a/README.md b/README.md index 25d62fe..b639c2a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![Build Status](https://travis-ci.org/greg7mdp/parallel_hashmap.svg?branch=master)](https://travis-ci.org/greg7mdp/org/greg7mdp/parallel_hashmap) +[![Build Status](https://travis-ci.org/greg7mdp/parallel_hashmap.svg?branch=master)](https://travis-ci.org/greg7mdp/org/greg7mdp/parallel_hashmap) +[![Build Status](https://ci.appveyor.com/api/projects/status/github/greg7mdp/parallel_hashmap)](https://ci.appveyor.com/api/projects/status/github/greg7mdp/parallel_hashmap) # The Parallel Hashmap: very fast, very memory friendly