diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-02-04 05:44:04 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-02-04 06:26:06 -0200 |
commit | 01af61dba4d45bbc82293caffff65466d5c3b0f1 (patch) | |
tree | 4c99310384a5b86ed82e112568de1a5aacddd44d | |
parent | c16b5da2d95d37441b6ae28252c89fbeb503c5a8 (diff) | |
download | kmod-01af61dba4d45bbc82293caffff65466d5c3b0f1.tar.gz |
travis: also test with gcc 4.8 and 4.9
-rw-r--r-- | .travis.yml | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index b500d01..9df2ba8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,27 @@ language: c -compiler: - - gcc - - clang -before_script: - - export KDIR="$(find /lib/modules/* -maxdepth 1 -name build | sort -n --reverse | head -1)" before_install: - - sudo apt-get update + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo apt-get update -qq - sudo apt-get install -qq liblzma-dev - sudo apt-get install -qq zlib1g-dev - sudo apt-get install -qq xsltproc docbook-xsl - sudo apt-get install -qq cython - sudo apt-get install -qq linux-headers-generic -# Change this to your needs -script: ./bootstrap-configure && make && make check + - if [ "$MYCC" = "gcc-4.8" ]; then sudo apt-get install -qq gcc-4.8; sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90; gcc --version; fi + - if [ "$MYCC" = "gcc-4.9" ]; then sudo apt-get install -qq gcc-4.9; sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90; gcc --version; fi +before_script: + - export KDIR="$(find /lib/modules/* -maxdepth 1 -name build | sort -n --reverse | head -1)" +matrix: + include: + - compiler: gcc + env: MYCC=gcc + - compiler: gcc + env: MYCC=gcc-4.8 + - compiler: gcc + env: MYCC=gcc-4.9 + - compiler: clang + env: MYCC=clang +script: ./bootstrap-configure && make -j && make -j check notifications: irc: channels: |