travis: Simplify configuration, move coverity_scan to matrix

This commit is contained in:
Pali Rohár committed 2017-02-26 17:00:07 +01:00
1 parent 16cdf3e776
commit ffcc10f689
1 file changed
+22 -20
+22 -20
View File
@@ -1,29 +1,31 @@
sudo: false sudo: false
language: c language: c
compiler: compiler:
- gcc - gcc
- clang - clang
matrix:
include:
- compiler: gcc
env: COVERITY=1
before_install:
- if [ "$COVERITY" = "1" -a "$TRAVIS_BRANCH" != "master" ]; then exit 0; fi
- if [ "$COVERITY" != "1" ]; then make; exit $?; fi
script: true
env: addons: &addons
global:
- secure: "JdUp+xFykPZoYA4aRfmYk2CtilLapniQllWPKo2dDdJd1vzdawfTvVxIAKjy7ac9RKwZzg3Chq3RsMEXPv8BtaLbssw266C7RDLMgjacl1eFLcmGRj/Gkk9peDSZ6vVdGEcA2j+6KDSfpCa/XjFjvOufZOgKw6m+3+d0A4G45SI="
addons:
apt: apt:
packages: packages:
- libusb-dev - libusb-dev
coverity_scan:
project: matrix:
name: "pali/0xFFFF" include:
description: "Build submitted via Travis CI" - compiler: gcc
notification_email: pali.rohar@gmail.com env:
build_command: make - secure: "JdUp+xFykPZoYA4aRfmYk2CtilLapniQllWPKo2dDdJd1vzdawfTvVxIAKjy7ac9RKwZzg3Chq3RsMEXPv8BtaLbssw266C7RDLMgjacl1eFLcmGRj/Gkk9peDSZ6vVdGEcA2j+6KDSfpCa/XjFjvOufZOgKw6m+3+d0A4G45SI="
branch_pattern: master addons:
<<: *addons
coverity_scan:
project:
name: "pali/0xFFFF"
description: "Build submitted via Travis CI"
notification_email: pali.rohar@gmail.com
build_command: make
branch_pattern: master
script:
- if [ "$COVERITY_SCAN_BRANCH" = "1" ]; then exit 0; fi
- make