2018-08-02 07:52:04 +08:00
|
|
|
sudo: required
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
2018-10-09 15:20:41 +08:00
|
|
|
git:
|
|
|
|
depth: false
|
|
|
|
|
2018-08-02 07:52:04 +08:00
|
|
|
services:
|
|
|
|
- docker
|
2018-10-09 15:20:41 +08:00
|
|
|
stages:
|
|
|
|
- test
|
2019-10-24 13:35:42 +08:00
|
|
|
- qemutest
|
2018-08-02 07:52:04 +08:00
|
|
|
|
|
|
|
before_install:
|
2019-01-31 14:59:59 +08:00
|
|
|
- docker pull thesofproject/sof && docker tag thesofproject/sof sof
|
2019-10-24 13:35:42 +08:00
|
|
|
|
|
|
|
env:
|
|
|
|
- PLATFORM=byt
|
|
|
|
- PLATFORM=cht
|
|
|
|
- PLATFORM=bdw
|
|
|
|
- PLATFORM=hsw
|
|
|
|
- PLATFORM=apl
|
|
|
|
- PLATFORM=skl
|
|
|
|
- PLATFORM=kbl
|
|
|
|
- PLATFORM=cnl
|
|
|
|
- PLATFORM=sue
|
|
|
|
- PLATFORM=icl
|
2019-10-30 12:41:25 +08:00
|
|
|
- PLATFORM=jsl
|
2019-10-24 13:35:42 +08:00
|
|
|
- PLATFORM=imx8
|
|
|
|
|
|
|
|
script: ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -j $PLATFORM
|
2018-08-02 07:52:04 +08:00
|
|
|
|
2018-10-09 15:20:41 +08:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-01-11 14:06:20 +08:00
|
|
|
- stage: test
|
2019-10-24 13:35:42 +08:00
|
|
|
script: ./scripts/docker-run.sh ./scripts/build-tools.sh
|
|
|
|
env: PLATFORM=tools
|
|
|
|
# Matrix hack: Declare the same stage name multiple times to test multiple
|
|
|
|
# versions. Use a YAML alias to prevent redundancy.
|
|
|
|
- &qemuboottest
|
|
|
|
stage: qemutest
|
|
|
|
script:
|
2019-10-25 16:57:19 +08:00
|
|
|
- sed -i $(($(grep "config HAVE_AGENT" -n src/platform/Kconfig | cut -f1 -d:)+2))"s/default y/default n/" src/platform/Kconfig
|
2019-10-24 13:35:42 +08:00
|
|
|
- ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -r -j $PLATFORM
|
|
|
|
- ./scripts/docker-qemu.sh ../sof.git/scripts/qemu-check.sh $PLATFORM
|
|
|
|
env: PLATFORM=byt
|
|
|
|
before_install:
|
|
|
|
- docker pull thesofproject/sof && docker tag thesofproject/sof sof
|
|
|
|
- docker pull thesofproject/sofqemu && docker tag thesofproject/sofqemu sofqemu
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=cht
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=bdw
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=hsw
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=apl
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=skl
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=kbl
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=cnl
|
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=icl
|