diff options
author | Pascal Buhler <pabuhler@cisco.com> | 2017-10-13 09:59:28 +0200 |
---|---|---|
committer | Pascal Buhler <pabuhler@cisco.com> | 2017-10-16 13:07:42 +0200 |
commit | eb39cf1509b153de6422e6f5571346720bac85ff (patch) | |
tree | 9f02584a19e97bc37a63e9be9f4181942d2bde6d /.travis.yml | |
parent | d3d91a03b2ba7823aa7d13d2bcecae779b529da3 (diff) | |
download | libsrtp2-eb39cf1509b153de6422e6f5571346720bac85ff.tar.gz |
Rewrite .travis.yml to easier support different targets
Use and explicit matrix include for each configuration.
This means there is more duplication but easier to control
what each configuration will do.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 90 |
1 files changed, 65 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml index 338bc80..30ebefd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,30 +1,70 @@ dist: trusty sudo: false language: c -cache: ccache -osx_image: xcode8.2 -addons: - apt: - packages: - - clang-format-3.9 -compiler: - - clang - - gcc -os: - - linux - - osx -env: - - CONFIGURE_FLAGS= - - CONFIGURE_FLAGS=--enable-openssl + matrix: - exclude: + include: + + # default linux build with gcc + - os: linux + env: + - TEST="linux gcc" + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-6 + script: + - ./configure + - make + - make runtest + + # linux build with openssl and gcc + - os: linux + env: + - TEST="linux gcc (openssl)" + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-6 + script: + - ./configure --enable-openssl + - make + - make runtest + + # linux build with openssl and clang + - os: linux + env: + - TEST="linux clang (openssl)" + addons: + apt: + packages: + - clang + script: + - CC=clang ./configure --enable-openssl + - make + - make runtest + + # default osx build with xcode (clang) - os: osx - env: CONFIGURE_FLAGS=--enable-openssl -before_script: - - if [ $TRAVIS_OS_NAME == osx ]; then brew update; fi - - if [ $TRAVIS_OS_NAME == osx ]; then brew install ccache; fi - - if [ $TRAVIS_OS_NAME == linux ]; then ./format.sh -d; fi -script: - - ./configure $CONFIGURE_FLAGS - - make - - make runtest + env: + - TEST="osx XCode 8.2" + osx_image: xcode8.2 + script: + - ./configure + - make + - make runtest + + # code format check + - os: linux + env: + - TEST="clang-format" + addons: + apt: + packages: + - clang-format-3.9 + script: + - ./format.sh -d |