diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..e8573d8d0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +os: linux +language: cpp +compiler: gcc +sudo: false + +branches: + only: + - master + +before_install: + - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.8 + +before_script: + - wget https://github.com/google/googletest/archive/master.zip -O /tmp/gtest.zip + - unzip /tmp/gtest.zip + - make -C $PWD/googletest-master/make + - export GTEST_PATH=$PWD/googletest-master + +script: make && make test && ./tests/test