|
@@ -1,3 +1,4 @@
|
|
|
|
+dist: trusty
|
|
language: cpp
|
|
language: cpp
|
|
cache: ccache
|
|
cache: ccache
|
|
matrix:
|
|
matrix:
|
|
@@ -9,14 +10,13 @@ matrix:
|
|
- os: osx
|
|
- os: osx
|
|
osx_image: xcode8.3
|
|
osx_image: xcode8.3
|
|
compiler: clang
|
|
compiler: clang
|
|
-sudo: false
|
|
|
|
|
|
+sudo: required
|
|
addons:
|
|
addons:
|
|
apt:
|
|
apt:
|
|
sources:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
packages:
|
|
- - g++-4.9
|
|
|
|
- - libstdc++-4.9-dev
|
|
|
|
|
|
+ - g++-7
|
|
- autoconf
|
|
- autoconf
|
|
- automake
|
|
- automake
|
|
- autotools-dev
|
|
- autotools-dev
|
|
@@ -33,9 +33,10 @@ addons:
|
|
before_install:
|
|
before_install:
|
|
- $CC --version
|
|
- $CC --version
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
|
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --force cppunit gettext openssl gnutls libgcrypt gmp nettle libssh2 c-ares sqlite3 ccache ; fi
|
|
|
|
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force cppunit gettext openssl gnutls libgcrypt gmp nettle libssh2 c-ares sqlite3 ccache ; fi
|
|
|
|
- - if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
|
|
|
|
|
|
+ # gmp is already installed
|
|
|
|
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --force cppunit gettext openssl libssh2 c-ares sqlite3 ccache ; fi
|
|
|
|
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force cppunit gettext openssl libssh2 c-ares sqlite3 ccache ; fi
|
|
|
|
+ - if [ "$CXX" = "g++" ]; then export CXX="g++-7" CC="gcc-7"; fi
|
|
- if [ "$CXX" = "clang++" ]; then export CXX="$CXX -Qunused-arguments" CC="$CC -Qunused-arguments"; fi
|
|
- if [ "$CXX" = "clang++" ]; then export CXX="$CXX -Qunused-arguments" CC="$CC -Qunused-arguments"; fi
|
|
- $CC --version
|
|
- $CC --version
|
|
before_script:
|
|
before_script:
|
|
@@ -43,6 +44,6 @@ before_script:
|
|
- automake
|
|
- automake
|
|
- autoconf
|
|
- autoconf
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure --without-openssl --without-gnutls --with-appletls --disable-nls CPPFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure --without-openssl --without-gnutls --with-appletls --disable-nls CPPFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address; fi
|
|
- - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then ./configure CPPFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address; fi
|
|
|
|
|
|
+ - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then ./configure CPPFLAGS=-fsanitize=address LDFLAGS="-fsanitize=address -fuse-ld=gold"; fi
|
|
script:
|
|
script:
|
|
- make CC="ccache $CC" CXX="ccache $CXX" check
|
|
- make CC="ccache $CC" CXX="ccache $CXX" check
|