From fd9e5841bce0babebae21e9ca6eadcc1add09982 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 28 Dec 2018 16:35:32 +0100 Subject: [PATCH] add travis tests --- .travis.yml | 13 +++++++++++++ Makefile | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c75b785 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: cpp +sudo: required +dist: trusty +before_script: + - sudo apt-get install -yq --no-install-suggests software-properties-common + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo apt-get update -y + - sudo apt-get install -yq --no-install-suggests gcc-5 g++-5 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 + - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install make +script: + - make + - make check diff --git a/Makefile b/Makefile index e0660c7..a6e70c0 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ clean: -include *.d +check: testrunner + ./testrunner + testrunner: test-basic.o typed-test.o lmdb-safe.o lmdb-typed.o -lboost_serialization g++ $(CXXVERSIONFLAG) $^ -o $@ -pthread $(LIBS)