forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 1.49 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: c
compiler:
- gcc
env:
- ARCH=arm LOADADDR=0x40008000 CROSS_COMPILE="arm-linux-gnueabihf-" BUILD_CONFIG=sunxi_defconfig TARGETS="uImage dtbs" J=1 C=2
- ARCH=arm LOADADDR=0x40008000 CROSS_COMPILE="arm-linux-gnueabihf-" BUILD_CONFIG=sunxi_full_defconfig TARGETS="uImage dtbs" J=1 C=2
- ARCH=arm LOADADDR=0x40008000 CROSS_COMPILE="arm-linux-gnueabihf-" BUILD_CONFIG=multi_v7_defconfig TARGETS="uImage dtbs modules" J=1 C=2
- BUILD_CONFIG=allyesconfig TARGETS="bzImage" J=8 C=0
- BUILD_CONFIG=allnoconfig TARGETS="bzImage" J=8 C=0
- BUILD_CONFIG=allmodconfig TARGETS="bzImage modules" J=8 C=0
before_install:
- sudo sed -i 's/^.*rabbit.*$//' /etc/apt/sources.list
- sudo apt-get update -qq
install:
- sudo apt-get install -qq bc
- sh -c '[ "$C" != "0" ] && sudo apt-get install -qq llvm-3.4-dev && export PATH="/usr/lib/llvm-3.4/bin:$PATH" && wget http://codemonkey.org.uk/projects/git-snapshots/sparse/sparse-latest.tar.xz -O sparse-latest.tar.xz && tar -xJf sparse-latest.tar.xz && cd sparse-*/ && sed -i "s#PREFIX=.*#PREFIX=/usr#" Makefile && make && sudo make install || exit 0'
- sh -c '[ -n "$ARCH" ] && sudo apt-get install -qq u-boot-tools gcc-arm-linux-gnueabihf || exit 0'
before_script:
- ${CROSS_COMPILE}gcc -v
- make $BUILD_CONFIG
- sed -i '/.*INITR.*/d' .config
- yes "" | make oldconfig
script:
- make -j$J C=$C CONFIG_DEBUG_SECTION_MISMATCH=y $TARGETS
notifications:
email:
recipients:
on_success: change
on_failure: always