2020-09-16 03:08:54 +08:00
|
|
|
---
|
|
|
|
# Suggested tools that can save round-trips to github and a lot of time:
|
|
|
|
#
|
|
|
|
# yamllint .travis.yml
|
|
|
|
# ~/.gem/ruby/2.7.0/bin/travis lint .travis.yml
|
|
|
|
# yaml merge-expand .travis.yml exp.yml && diff -b -u .travis.yml exp.yml
|
2018-08-02 07:52:04 +08:00
|
|
|
|
|
|
|
language: c
|
2020-09-20 05:20:35 +08:00
|
|
|
# Ubuntu 20.04 LTS
|
|
|
|
dist: focal
|
2018-08-02 07:52:04 +08:00
|
|
|
|
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-09-16 12:12:00 +08:00
|
|
|
# 'name:'-less jobs appear with their env, e.g.: PLATFORM=tgl
|
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='jsl'
|
|
|
|
|
2021-01-16 09:17:00 +08:00
|
|
|
- <<: *build-platform
|
|
|
|
env: PLATFORM='sue'
|
|
|
|
|
2020-06-16 14:14:29 +08:00
|
|
|
- <<: *build-platform
|
|
|
|
env: PLATFORM='tgl'
|
|
|
|
|
2020-12-10 13:44:17 +08:00
|
|
|
- <<: *build-platform
|
|
|
|
env: PLATFORM='tgl-h'
|
|
|
|
|
2020-09-15 12:28:28 +08:00
|
|
|
- name: "./scripts/build-tools.sh Release"
|
2020-04-08 14:19:34 +08:00
|
|
|
before_install: *docker-pull-sof
|
2020-09-15 12:28:28 +08:00
|
|
|
script: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh ./scripts/build-tools.sh
|
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:
|
2021-03-23 09:29:45 +08:00
|
|
|
- echo CONFIG_HAVE_AGENT=n > src/arch/xtensa/configs/override/no-agent.config
|
|
|
|
- ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -o no-agent -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
|
2020-09-20 05:29:06 +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:
|
2020-08-29 02:23:45 +08:00
|
|
|
# testbench needs some topologies
|
|
|
|
- ./scripts/docker-run.sh ./scripts/build-tools.sh -t
|
|
|
|
- ./scripts/docker-run.sh ./scripts/rebuild-testbench.sh
|
2020-03-30 16:45:13 +08:00
|
|
|
- ./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).
|
2020-09-20 05:29:06 +08:00
|
|
|
- mkdir -p doxybuild && pushd doxybuild && cmake -GNinja -S ../doc &&
|
|
|
|
ninja -v doc
|
2020-04-08 08:02:15 +08:00
|
|
|
- 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
|