mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-08 01:36:44 +08:00
Support for testing in AppVeyor.
Tests are run for VC2010, VC2012, VC2013, VC2015.
This commit is contained in:
parent
ba9139e075
commit
3c3733c700
34
appveyor.yml
Normal file
34
appveyor.yml
Normal file
@ -0,0 +1,34 @@
|
||||
version: "{build}"
|
||||
|
||||
branches:
|
||||
except:
|
||||
- gh-pages
|
||||
- traits
|
||||
|
||||
skip_tags : true
|
||||
shallow_clone: true
|
||||
|
||||
os: Visual Studio 2015 RC
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- title: vc2015
|
||||
compiler: Visual Studio 14 2015
|
||||
- title: vc2013
|
||||
compiler: Visual Studio 12 2013
|
||||
- title: vc2012
|
||||
compiler: Visual Studio 11 2012
|
||||
- title: vc2010
|
||||
compiler: Visual Studio 10 2010
|
||||
|
||||
install:
|
||||
- choco -y install cyg-get
|
||||
- cyg-get make
|
||||
- git clone --depth 1 https://github.com/CxxTest/cxxtest.git
|
||||
|
||||
build_script:
|
||||
- set CL=/I C:\projects\better-enums\cxxtest
|
||||
- set PATH=%PATH%;C:\projects\better-enums\cxxtest\bin;C:\tools\cygwin\bin
|
||||
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
|
||||
- cd test
|
||||
- make TITLE=%title% COMPILER="%compiler%" ms
|
||||
@ -75,6 +75,8 @@ vc2015 /EHsc
|
||||
vc2015 /EHsc /DBETTER_ENUMS_STRICT_CONVERSION
|
||||
vc2013 /EHsc
|
||||
vc2013 /EHsc /DBETTER_ENUMS_STRICT_CONVERSION
|
||||
vc2012 /EHsc
|
||||
vc2010 /EHsc
|
||||
clang++36 -std=c++11
|
||||
clang++36 -std=c++11 -DBETTER_ENUMS_STRICT_CONVERSION
|
||||
clang++36 -std=c++11 -DBETTER_ENUMS_CONSTEXPR_TO_STRING
|
||||
|
||||
@ -72,7 +72,7 @@ endif()
|
||||
# Basic tests.
|
||||
|
||||
add_executable(cxxtest cxxtest/tests.cc)
|
||||
add_executable(link link/helper.cc link/main.cc)
|
||||
add_executable(linking linking/helper.cc linking/main.cc)
|
||||
|
||||
set(PERFORMANCE_TESTS
|
||||
1-simple 2-include_empty 3-only_include_enum 4-declare_enums 5-iostream)
|
||||
|
||||
@ -21,6 +21,7 @@ define PATH_FIX
|
||||
@true
|
||||
endef
|
||||
SUFFIX :=
|
||||
CXXTESTGEN := cxxtestgen
|
||||
|
||||
else
|
||||
|
||||
@ -30,6 +31,7 @@ define PATH_FIX
|
||||
sed 's!include "/!include "C:/cygwin/!g' $1 > $$$$ && mv $$$$ $1
|
||||
endef
|
||||
SUFFIX := .exe
|
||||
CXXTESTGEN := python `which cxxtestgen | sed s!/cygdrive/c!c:/!`
|
||||
|
||||
endif
|
||||
|
||||
@ -149,7 +151,7 @@ all-ms :
|
||||
make TITLE=vc2015 COMPILER="Visual Studio 14 2015" ms
|
||||
|
||||
$(CXXTEST_GENERATED) : cxxtest/*.h
|
||||
cxxtestgen --error-printer -o $@ $^
|
||||
$(CXXTESTGEN) --error-printer -o $@ $^
|
||||
$(call PATH_FIX,$@)
|
||||
|
||||
.PHONY : clean
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user