]>
Commit | Line | Data |
---|---|---|
4b9cab28 | 1 | language: c |
688168c6 LDM |
2 | |
3 | matrix: | |
4 | include: | |
5 | - compiler: gcc | |
6 | env: MYCC=gcc | |
7 | - compiler: gcc | |
8 | env: MYCC=gcc-4.8 | |
9 | - compiler: gcc | |
10 | env: MYCC=gcc-4.9 | |
11 | - compiler: clang | |
12 | env: MYCC=clang | |
13 | ||
4b9cab28 | 14 | before_install: |
01af61db LDM |
15 | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y |
16 | - sudo apt-get update -qq | |
4b9cab28 LDM |
17 | - sudo apt-get install -qq liblzma-dev |
18 | - sudo apt-get install -qq zlib1g-dev | |
19 | - sudo apt-get install -qq xsltproc docbook-xsl | |
29bc329f | 20 | - sudo apt-get install -qq cython |
c16b5da2 | 21 | - sudo apt-get install -qq linux-headers-generic |
01af61db LDM |
22 | - 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 |
23 | - 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 | |
688168c6 | 24 | |
01af61db | 25 | before_script: |
9132c59e | 26 | - unset PYTHON_CFLAGS # hack to broken travis setup |
01af61db | 27 | - export KDIR="$(find /lib/modules/* -maxdepth 1 -name build | sort -n --reverse | head -1)" |
688168c6 LDM |
28 | |
29 | script: | |
30 | - ./autogen.sh c --without-openssl && make -j | |
31 | - if [ "$MYCC" != "gcc-4.8" ]; then make -j check; fi | |
32 | ||
4b9cab28 LDM |
33 | notifications: |
34 | irc: | |
35 | channels: | |
36 | - "irc.freenode.org#kmod" | |
37 | template: | |
38 | - "%{commit}: %{author} - %{message}" |