From 735a872617f31d0490bad25a7c9e548b2f00eaa0 Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Fri, 29 Mar 2019 17:10:45 +0100 Subject: [PATCH] Add .travis.yml --- .travis.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..404eaeef --- /dev/null +++ b/.travis.yml @@ -0,0 +1,42 @@ +language: cpp +sudo: false # docker VM +git: + depth: 99999 +matrix: + include: + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-8 + - autoconf-archive + env: HOST="" MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" + compiler: gcc + - os: linux + dist: xenial + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-mingw-w64 + - autoconf-archive + env: + - HOST="x86_64-w64-mingw32" + - MINGW_ON_LINUX="1" + - MATRIX_EVAL="unset CC && unset CXX" + - os: osx + osx_image: xcode10 + env: HOST="" MATRIX_EVAL="brew install autoconf-archive" + compiler: clang +before_install: + - eval "${MATRIX_EVAL}" +script: pwd && echo MINGW_ON_LINUX=$MINGW_ON_LINUX && (./autogen.sh --host=$HOST --disable-debug --prefix=$PWD/install || (cat config.log; false)) && make && (echo here; [ x = x$MINGW_ON_LINUX ] && (make check || (for i in src/*.log; do echo === $i ===; cat $i; done; false)) || true) && make install && find install +notifications: + email: + recipients: + - radarsat1@gmail.com + on_success: never + on_failure: change