added travis.yml

This commit is contained in:
M. Petra Baranski 2017-12-26 11:42:57 +01:00
parent 0f7f7c1b9d
commit 91e62beaec
3 changed files with 19 additions and 2 deletions

17
.travis.yml Normal file
View File

@ -0,0 +1,17 @@
dist: trusty
sudo: false
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
script:
- mkdir tmp
- cd tmp
- cmake ..
- make
- ../build/MaddyTests

View File

@ -8,7 +8,7 @@
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
int main (int argc, char** argv) { int main (int argc, char** argv) {
::testing::GTEST_FLAG(throw_on_failure) = false; ::testing::GTEST_FLAG(throw_on_failure) = true;
::testing::InitGoogleMock(&argc, argv); ::testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }