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
|
2020-04-08 14:19:34 +08:00
|
|
|
|
|
|
|
# We don't need the strict sequence of stages; for now we use stages
|
2020-04-11 08:44:50 +08:00
|
|
|
# only as presentation labels. Nothing in stage "tests" will run if
|
|
|
|
# anything in buildonly fails; in the future we may want to get rid of
|
|
|
|
# stages.
|
2018-10-09 15:20:41 +08:00
|
|
|
stages:
|
2020-04-08 14:19:34 +08:00
|
|
|
- buildonly
|
2020-04-11 08:44:50 +08:00
|
|
|
- tests
|
2018-08-02 07:52:04 +08:00
|
|
|
|
|
|
|
|
2020-04-11 08:44:50 +08:00
|
|
|
# 'name:'-less jobs appear with their env, e.g.: PLATFORM=sue
|
2018-10-09 15:20:41 +08:00
|
|
|
jobs:
|
|
|
|
include:
|
2020-04-08 14:19:34 +08:00
|
|
|
|
2020-04-11 08:44:50 +08:00
|
|
|
# stage buildonly
|
|
|
|
|
2020-04-08 14:19:34 +08:00
|
|
|
- &build-platform
|
|
|
|
stage: buildonly
|
|
|
|
before_install:
|
|
|
|
&docker-pull-sof
|
|
|
|
docker pull thesofproject/sof && docker tag thesofproject/sof sof
|
|
|
|
script:
|
2020-06-23 14:54:15 +08:00
|
|
|
./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -r $PLATFORM
|
2020-04-08 14:19:34 +08:00
|
|
|
env: PLATFORM='sue'
|
|
|
|
|
|
|
|
- <<: *build-platform
|
|
|
|
env: PLATFORM='jsl'
|
|
|
|
|
2020-06-16 14:14:29 +08:00
|
|
|
- <<: *build-platform
|
|
|
|
env: PLATFORM='tgl'
|
|
|
|
|
2020-04-08 14:19:34 +08:00
|
|
|
- name: "./scripts/build-tools.sh"
|
|
|
|
before_install: *docker-pull-sof
|
2019-10-24 13:35:42 +08:00
|
|
|
script: ./scripts/docker-run.sh ./scripts/build-tools.sh
|
2020-04-08 14:19:34 +08:00
|
|
|
|
|
|
|
- name: "./scripts/host-build-all.sh"
|
|
|
|
before_install: *docker-pull-sof
|
2020-02-27 17:45:23 +08:00
|
|
|
script: ./scripts/docker-run.sh ./scripts/host-build-all.sh -l
|
2020-04-08 14:19:34 +08:00
|
|
|
|
2020-04-11 08:44:50 +08:00
|
|
|
|
|
|
|
# stage tests
|
|
|
|
|
2019-10-24 13:35:42 +08:00
|
|
|
- &qemuboottest
|
2020-04-11 08:44:50 +08:00
|
|
|
stage: tests
|
2019-10-24 13:35:42 +08:00
|
|
|
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
|
2020-04-04 18:01:29 +08:00
|
|
|
- ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -r $PLATFORM
|
2019-10-24 13:35:42 +08:00
|
|
|
- ./scripts/docker-qemu.sh ../sof.git/scripts/qemu-check.sh $PLATFORM
|
2020-04-08 14:19:34 +08:00
|
|
|
env: PLATFORM='byt cht'
|
2019-10-24 13:35:42 +08:00
|
|
|
before_install:
|
2020-04-08 14:19:34 +08:00
|
|
|
- *docker-pull-sof
|
2019-10-24 13:35:42 +08:00
|
|
|
- docker pull thesofproject/sofqemu && docker tag thesofproject/sofqemu sofqemu
|
2020-04-08 14:19:34 +08:00
|
|
|
|
2019-10-24 13:35:42 +08:00
|
|
|
- <<: *qemuboottest
|
2020-04-08 14:19:34 +08:00
|
|
|
env: PLATFORM='bdw hsw'
|
|
|
|
|
2020-02-26 16:17:18 +08:00
|
|
|
- <<: *qemuboottest
|
2020-04-08 14:19:34 +08:00
|
|
|
env: PLATFORM='apl skl kbl'
|
|
|
|
|
2020-02-27 15:47:39 +08:00
|
|
|
- <<: *qemuboottest
|
2020-04-08 14:19:34 +08:00
|
|
|
env: PLATFORM='cnl icl'
|
|
|
|
|
2020-03-20 20:37:02 +08:00
|
|
|
- <<: *qemuboottest
|
2020-04-08 14:19:34 +08:00
|
|
|
env: PLATFORM='imx8 imx8x imx8m'
|
|
|
|
|
|
|
|
|
2020-04-11 08:44:50 +08:00
|
|
|
- name: testbench
|
2020-04-08 14:19:34 +08:00
|
|
|
before_install: *docker-pull-sof
|
2020-03-30 16:45:13 +08:00
|
|
|
script:
|
|
|
|
- ./scripts/docker-run.sh ./scripts/build-tools.sh -t &> /dev/null
|
|
|
|
- ./scripts/docker-run.sh ./scripts/host-build-all.sh
|
|
|
|
- ./scripts/host-testbench.sh
|
2020-04-08 08:02:15 +08:00
|
|
|
|
2020-04-08 14:19:34 +08:00
|
|
|
|
2020-04-11 08:44:50 +08:00
|
|
|
- name: doxygen
|
2020-04-08 08:02:15 +08:00
|
|
|
|
|
|
|
before_install: sudo apt-get -y install ninja-build doxygen graphviz
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
|
|
|
# Show ALL warnings. Warnings don't cause doxygen to fail (yet).
|
|
|
|
- mkdir -p doxybuild && pushd doxybuild && cmake -GNinja -S ../doc && ninja -v doc
|
|
|
|
- popd
|
|
|
|
|
|
|
|
# Build again (it's very quick) and report a failure in Travis if
|
|
|
|
# any issue. This time doxygen stops on the first issue.
|
|
|
|
- printf 'WARN_AS_ERROR = YES\n' >> doc/sof.doxygen.in
|
|
|
|
- ninja -C doxybuild -v doc
|
2020-06-11 21:05:37 +08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#sof"
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|