From e026f804eb458a7188afb8bf48f2f6f3698f3cc4 Mon Sep 17 00:00:00 2001 From: Yu-Jie Lin Date: Tue, 20 Feb 2018 11:21:59 +0800 Subject: [PATCH 1/2] add Travis CI with Linux/OSX and Clang/GCC builds Expected to fail due to the lack of autoconf-archive. --- .travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5a49a0e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: c + +os: + - linux + - osx + +sudo: required + +compiler: + - clang + - gcc + +before_script: + - autoreconf -i + +script: + - ./configure && make && sudo make install From 7af1bbbf0c3615a5e2b200f8d74f65e40e1a4f14 Mon Sep 17 00:00:00 2001 From: Yu-Jie Lin Date: Tue, 20 Feb 2018 12:24:01 +0800 Subject: [PATCH 2/2] install autoconf-archive-2017.03.21 in CI The approach is to use the tarball for the 2017.03.21, as it's the minimal version for dash-version policy of AX_IS_RELEASE macro. Although we can use APT to install autoconf-archive, but it won't work for OSX build, and cloning Git takes more time than a simple tarball. --- .travis.yml | 6 +++++- README.md | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5a49a0e..7399c4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,12 @@ compiler: - clang - gcc +before_install: + - AA=autoconf-archive-2017.03.21 + - wget -O - http://ftpmirror.gnu.org/autoconf-archive/$AA.tar.xz | tar -xJ + before_script: - - autoreconf -i + - autoreconf -i -I $AA/m4 script: - ./configure && make && sudo make install diff --git a/README.md b/README.md index a2d49f7..899d510 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,8 @@ Autoconf Archive manually and tell `autoreconf` to use the local copy: autoreconf -i -I autoconf-archive/m4 ./configure && make && make install -Note that at least version 2.64 of autoconf is required. +Note that at least version 2.64 of autoconf and version 2017.03.21 of +autoconf-archive are required. ## Usage