travis: also test with gcc 4.8 and 4.9
[platform/upstream/kmod.git] / .travis.yml
1 language: c
2 before_install:
3   - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
4   - sudo apt-get update -qq
5   - sudo apt-get install -qq liblzma-dev
6   - sudo apt-get install -qq zlib1g-dev
7   - sudo apt-get install -qq xsltproc docbook-xsl
8   - sudo apt-get install -qq cython
9   - sudo apt-get install -qq linux-headers-generic
10   - 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
11   - 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
12 before_script:
13   - export KDIR="$(find  /lib/modules/* -maxdepth  1 -name build | sort -n --reverse | head -1)"
14 matrix:
15   include:
16     - compiler: gcc
17       env: MYCC=gcc
18     - compiler: gcc
19       env: MYCC=gcc-4.8
20     - compiler: gcc
21       env: MYCC=gcc-4.9
22     - compiler: clang
23       env: MYCC=clang
24 script: ./bootstrap-configure && make -j && make -j check
25 notifications:
26   irc:
27     channels:
28       - "irc.freenode.org#kmod"
29     template:
30       - "%{commit}: %{author} - %{message}"