forked from thesofproject/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (46 loc) · 2.03 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
language: c
dist: xenial
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-7 g++-7
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- git clone https://github.com/thesofproject/kconfig.git
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
- make defconfig
- scripts/kconfig/merge_config.sh .config kconfig/base-defconfig kconfig/sof-defconfig kconfig/hdaudio-codecs-defconfig
- make modules_prepare
- make M=sound/soc/sof C=2
- make coccicheck MODE=report M=sound/soc/sof
- name: "BUILD SOF Kernel x86_64"
script:
- export ARCH=x86_64
- make defconfig
- scripts/kconfig/merge_config.sh .config kconfig/base-defconfig kconfig/sof-defconfig
- make modules_prepare
- KCFLAGS="-Wall -Werror" make -j`getconf _NPROCESSORS_ONLN` M=sound/soc/sof W=1
- KCFLAGS="-Wall -Werror" make -j`getconf _NPROCESSORS_ONLN`
- make bindeb-pkg -j`getconf _NPROCESSORS_ONLN`
- name: "BUILD SST Kernel x86_64"
script:
- export ARCH=x86_64
- make defconfig
- scripts/kconfig/merge_config.sh .config kconfig/base-defconfig kconfig/sst-defconfig
- KCFLAGS="-Wall -Werror" make -j`getconf _NPROCESSORS_ONLN`