Merge pull request #70 from hymerman/continuous-integration

Continuous integration
This commit is contained in:
Patrick Johnmeyer 2015-07-14 20:43:29 -05:00
commit ab716658dc
2 changed files with 35 additions and 0 deletions

21
.travis.yml Normal file
View file

@ -0,0 +1,21 @@
language: cpp
# Build with gcc and clang.
compiler:
- gcc
- clang
# Build both debug and release configurations, through use of an environment variable in the build matrix.
env:
- CONFIGURATION=Debug
- CONFIGURATION=Release
# Run cmake to generate makefiles in 'builds' directory.
# No need to create it because it's part of the repo.
# Pass along configuration type to cmake
before_script:
- cd builds && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$CONFIGURATION ../ && cd ..
# Run make in the directory containing generated makefiles.
script:
- make -C builds

14
appveyor.yml Normal file
View file

@ -0,0 +1,14 @@
os:
- Windows Server 2012 R2
install:
# Generate solution files using cmake, in 'builds' directory.
# No need to create it because it's part of the repo.
- cd builds && cmake -G "Visual Studio 12" ../ && cd ..
configuration:
- Debug
- Release
build:
project: builds/UnitTest++.sln