Skip to content

Commit

Permalink
[DEBUG]CI: Travis: Enable Travis CI for linux kernel
Browse files Browse the repository at this point in the history
Add checkpatch for pull-request only.
Build x86_64 kernel with kconfig sof base config.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
  • Loading branch information
xiulipan authored and plbossart committed Nov 2, 2018
1 parent a5ddc3d commit af44aa9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: c

git:
depth: false

before_install:
- sudo apt-get update -qq
- sudo apt-get install python-ply python-git libelf-dev codespell
- git clone https://github.com/thesofproject/kconfig.git

jobs:
include:
- if: type = pull_request
name: checkpatch
script: scripts/checkpatch.pl --strict --codespell -g $TRAVIS_COMMIT_RANGE
- 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
- echo `getconf _NPROCESSORS_ONLN`
- make -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
- echo `getconf _NPROCESSORS_ONLN`
- make -j`getconf _NPROCESSORS_ONLN`

0 comments on commit af44aa9

Please sign in to comment.