add travis tests

This commit is contained in:
bert hubert 2018-12-28 16:35:32 +01:00
parent b3eb2a03cb
commit fd9e5841bc
2 changed files with 16 additions and 0 deletions

13
.travis.yml Normal file
View File

@ -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

View File

@ -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)