From 7d7a8ec805192a192dda1906280387b2c8665225 Mon Sep 17 00:00:00 2001 From: costan Date: Fri, 10 Mar 2017 12:27:00 -0800 Subject: [PATCH] Add Travis CI configuration to snappy and fix the make build. The make build in the open source version uses autoconf, which is set up to expect a project that follows the gnu standard. --- .travis.yml | 12 ++++++++++++ Makefile.am | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..13a6109 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: cpp +compiler: +- clang +- gcc +os: +- linux +sudo: false +before_install: +- echo $LANG +- echo $LC_ALL +script: +- ./autogen.sh && ./configure && make -j 4 check diff --git a/Makefile.am b/Makefile.am index c00e136..0746a16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,3 +24,8 @@ nodist_pkgconfig_DATA = snappy.pc libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck + +# Needed by autoconf because we use README.md instead of README. +# See http://stackoverflow.com/q/15013672/ +README: README.md + cat $< > $@.tmp