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
|
2020-01-16 18:16:26 +08:00
|
|
|
- PLATFORM=imx8x
|
2020-02-26 16:58:01 +08:00
|
|
|
- PLATFORM=imx8m
|
2019-10-24 13:35:42 +08:00
|
|
|
|
|
|
|
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
|
2020-02-27 17:45:23 +08:00
|
|
|
- stage: test
|
|
|
|
script: ./scripts/docker-run.sh ./scripts/host-build-all.sh -l
|
|
|
|
env: PLATFORM=host
|
2019-10-24 13:35:42 +08:00
|
|
|
# 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
|
2020-02-26 16:17:18 +08:00
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=imx8
|
2020-02-27 15:47:39 +08:00
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=imx8x
|
2020-03-20 20:37:02 +08:00
|
|
|
- <<: *qemuboottest
|
|
|
|
env: PLATFORM=imx8m
|