forked from thesofproject/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (57 loc) · 2.47 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: c
dist: bionic
git:
depth: 20
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install -y python-ply python-git libelf-dev codespell sparse fakeroot gcc-9 g++-9 gcc-aarch64-linux-gnu
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9
- sudo apt-get install -y xz-utils lftp
- git clone https://github.com/thesofproject/kconfig.git
- mkdir 0day
- wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O make.cross
- chmod +x make.cross
jobs:
include:
- if: type = pull_request
name: checkpatch
script:
- SHA_PR=`git log --oneline -1 | sed -rn "s/.*Merge (.*) into.*/\1/p"`
- SHA_MAIN=`git log --oneline -1 | sed -rn "s/.*Merge .* into (.*)/\1/p"`
- scripts/checkpatch.pl --strict --codespell -g $SHA_MAIN..$SHA_PR
- name: "Code Scan"
script:
- sudo apt-get install automake ocaml-native-compilers ocaml-findlib
- wget https://github.com/coccinelle/coccinelle/archive/1.0.7.tar.gz
- tar -xf 1.0.7.tar.gz
- cd coccinelle-1.0.7 && ./autogen && ./configure && make && sudo make install
- cd -
- export ARCH=x86_64
- bash kconfig/kconfig-sof-default.sh
- make modules_prepare
- make M=sound/soc/sof C=2
- make coccicheck MODE=report M=sound/soc/sof
- name: "BUILD GCC9 SOF Kernel x86_64"
script:
- export ARCH=x86_64 KCFLAGS="-Wall -Werror"
- bash kconfig/kconfig-sof-default.sh
- make modules_prepare
- make -j`getconf _NPROCESSORS_ONLN` M=sound/soc/sof W=1
- make -j`getconf _NPROCESSORS_ONLN`
- make -j`getconf _NPROCESSORS_ONLN` bindeb-pkg
- name: "BUILD GCC9 SST Kernel x86_64"
script:
- export ARCH=x86_64
- bash kconfig/kconfig-sst.sh
- KCFLAGS="-Wall -Werror" make -j`getconf _NPROCESSORS_ONLN`
- name: "BUILD GCC9 SOF Kernel arm64"
script:
- export ARCH=arm64 CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
- bash kconfig/kconfig-sof-arm64.sh
- KCFLAGS="-Wall -Werror" make -j`getconf _NPROCESSORS_ONLN`
- name: "BUILD CLANG SOF Kernel x86_64"
script:
- bash kconfig/kconfig-sof-default.sh
- COMPILER_INSTALL_PATH=$PWD/0day COMPILER=clang ./make.cross ARCH=x86_64 olddefconfig
- COMPILER_INSTALL_PATH=$PWD/0day COMPILER=clang ./make.cross ARCH=x86_64