Commit Graph

46 Commits

Author SHA1 Message Date
Marc Herbert 7e19c42404 .github: replace HAVE_CONFIG KConfig hack with an override
Should make git describe --dirty clean.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2021-03-23 12:17:22 +00:00
Marc Herbert 027bda1fcd .travis.yml: build Sue Creek
Sue Creek is the only platform using the ALIGN() macro in assembly. If
it had been built in CI then we would have avoided the ALIGN()
regression in commit 39266cac81 ("core: assure alignment is only done
on power of 2 values"). Building Sue Creek is practically free and finds
bugs so let's build it.

I'm aware Travis isn't the future but it's still running for now and
this is a tiny and totally trivial change that took 1/100 of the time
spent writing this commit message. It's also a reminder not to forget
Sue Creek in whatever will replace Travis.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2021-01-18 14:34:04 +00:00
Pan Xiuli 5ea80a51eb travis: add tgl-h build
Add tgl-h build check in Travis

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2020-12-15 14:08:54 +00:00
Marc Herbert 0a247928bb travis: upgrade distribution to Ubuntu 20.04
The current default Travis default is 16.04 which is obsolete.

From https://github.com/thesofproject/linux/pull/2402

> Everyone uses 20.04, period. SOF CI also uses 20.04.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-09-21 10:23:13 +01:00
Marc Herbert aa20048e92 travis: fold long lines; fixes the last yamllint warnings
yamllint clean.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-09-21 10:23:13 +01:00
Marc Herbert 646e562399 travis: remove duplicate and deprecated host-build-all.sh
We already build _and_ run the testbench in the next stage, with the
newer script. No need to build the same thing twice.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-09-17 14:48:20 +01:00
Marc Herbert 81b21c33b6 travis: remove deprecated 'sudo: required'
As reported by travis lint:

 [x] [warn] on root: deprecated key: sudo
         (The key `sudo` has no effect anymore.)

Also copy to the top of the file well-tested .travis.yml tips from
sof/linux/.travis.yml

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-09-17 14:48:20 +01:00
Marc Herbert f1e2ac936a travis: remove sue creek
Sue Creek support was never completed, stop building it as it may give a
wrong impression.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-09-16 15:21:33 +01:00
Marc Herbert 7072eb4447 travis: run build-tools.sh with CMAKE_BUILD_TYPE=Release
For some reason gcc prints more warnings this way and of course CI is
meant to catch warnings as soon as possible.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-09-16 15:21:18 +01:00
Marc Herbert 32d32b59cb .travis.yml: switch to newer rebuild-testbench.sh
Also stop hiding errors in topologies build.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-09-01 10:42:56 +01:00
Marc Herbert 81a416b75c .travis.yml: build ROM for "buildonly" platforms too
No obvious reason not to build ROM for "buildonly" platforms too.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-06-23 12:03:15 +01:00
Marc Herbert 4a87d8c967 xtensa-build-all.sh: add tgl with xtensa-cnl-elf. No rimage yet.
Copy the icl and cnl configurations.

This build with the gcc toolchain has NOT been tested on tgl. The
purpose is purely to add the gcc build to CI, avoid future gcc bitrot
and catch more warnings and bugs.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-06-22 13:00:56 +01:00
Daniel Baluta a8ec8bf8c6 .travis.yml: add IRC notifications
SOF has #sof dedicated channel on irc.freenode.net server.
This will enable travis ci to send notifications to the IRC
channel each time a build is finished (either successful or not).

We will see how this works and refine it later if it is too spammy.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-06-11 18:57:42 +01:00
Pan Xiuli ab421466af CI: Travis: enable host testbnech again
After fix the host-testbench.sh issues, re-enable the testbench
test in Travis.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2020-05-13 10:38:12 +01:00
Shreeya Patel 38af37a843 .travis.yml: Fix incorrect usage of -j option
xtensa-build-all.sh expects number of cores to be used when -j option is
specified. By default, it uses all the cores available which is what we
want, hence, omitting the option altogether.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
2020-04-21 14:55:53 +01:00
Marc Herbert 3808dfec67 CI: Travis: reduce the number of stages to two
Travis stages are designed not to run after the first that fails. We
never used them for that, only for nicer presentation of
results. Running all tests independently of each other (e.g.: qemu and
doxygen) even when one fails is more important than presentation, so
reduce the number of stages to just two: "buildonly" and "tests"
Travis job name: doesn't look as good alone as when combined
with a stage name but it's enough to identify jobs.

Reducing to just one stage is tempting but it would require a lot more
naming surgery so let's start with this small diff and two stages for
now.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-04-11 14:07:27 +01:00
Marc Herbert edb2c60054 CI: Travis: disable host-testbench as long as it ignores errors
See https://github.com/thesofproject/sof/issues/2752

host-testbench.sh exits with success 0 when tests fail. Random, recent, all
green example in PR #2751:

https://travis-ci.org/github/thesofproject/sof/jobs/672996210 is green but:

  eqiir test failed!

I didn't even have to spend time to search for this example, I only
looked at the most recent PR.

Ignoring failures is the very worst type of validation issue because it
makes everyone think everything is OK when it's not. Hides regressions.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-04-10 10:53:16 +01:00
Marc Herbert d62629152f CI: Travis: less VM isolation for speed-up. Remove matrix.
Looking at any recent Travis build log:

1. more than half the time is spent in the exact same "docker pull"
   command,
2. The qemuboottest stage rebuilds again the exact same thing than the
   previous test stage.

Fix 1. by re-using the same docker instance for multiple platforms.
Fix 2. by dropping from the test stage builds performed again in
the qemuboottest stage.

Random sample before:
  Total (VM) time  1 hr 15 min
  Real time             25 min (depends on current Travis load)
After:
  Total (VM) time       30 min
  Real time             10 min (depends on current Travis load)

The price to pay for this matrix reduction and speed up is coarser
reports in case of failure. Considering these tests are the most basic
possible one expects them to be rarely ever broken.

Remove the top-level matrix expansion as it was becoming impractical for
these heterogeneous builds ("PLATFORM=tools"?!). The combination of the
matrix and YAML anchors was not very obvious. Use YAML anchors
exclusively.

Rename default stage "test" to "buildonly"

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-04-09 09:09:50 +01:00
Marc Herbert d92d3e9883 CI: travis: add doxygen stage
Before this new stage, doxygen was run only in a completely different
repo (sof-docs). So it was possible to submit totally broken doxygen
changes and get no doxygen feedback at all from CI before merge.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-04-08 10:53:21 +01:00
Pan Xiuli 1ecf435d13 CI: travis: Add host-testbecnh
build test topology.
builg host-testbench
Test with host-testbench.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2020-04-03 09:13:03 +01:00
Diana Cretu b8b96a20bb CI: travis: Add boot test for i.MX8M
i.MX8M is now supported in qemu up to boot. So, add
it to boottest list.

Signed-off-by: Diana Cretu <dianacretu2806@gmail.com>
2020-03-24 14:28:45 +00:00
Diana Cretu c41aa4e8d1 CI: travis: Add boot test for i.MX8X
i.MX8X is now supported in qemu up to boot. So, add
it to boottest list.

Signed-off-by: Diana Cretu <diana.cretu@nxp.com>
2020-02-28 16:50:56 +00:00
Pan Xiuli af8843d110 CI: travis: add host build
host build is missing during previous scripts refine.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2020-02-28 15:17:19 +00:00
Daniel Baluta 86752f6daf CI: travis: add IMX8M build check
Enable imx8m build check in travis.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-02-26 13:46:16 +00:00
Daniel Baluta ade9145e7c CI: travis: Add boot test for i.MX8
imx8 is now supported in qemu up to boot. So, add
it to boottest list.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-02-26 13:11:21 +02:00
Pan Xiuli 8b7cefedb5 CI: travis: add IMX8X build check
Enable imx8x build check in travis.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2020-01-16 13:48:18 +02:00
Pan Xiuli 59c9338337 CI: travis: add JSL build check
Enable JSL build check in travis.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-10-30 17:46:11 +01:00
Pan Xiuli 63cd5a52a3 CI: travis: disable agent for QEMU test
QEMU boot test will random fail with agent. Disable it to make sure
QEMU boot test will not fail.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-10-25 11:06:19 +02:00
Pan Xiuli ffe904c9f9 CI: travis: update with matrix to hold more platforms
Use matrix to maintain build job for easy extension.
Add workaroud to QEMU test to avoid accuracy error may cause false
alarm in boot test.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-10-24 10:18:02 +02:00
Pan Xiuli 8901e0cf29 CI: travis: update with IMX8 support
Add IMX8 build test in travis CI.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-05-30 13:18:47 +02:00
Pan Xiuli d3b6654579 CI: travis: update the docker hub organization
Use thesofproject organization in dockerhub to replace the personal
account.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-31 20:35:44 +00:00
Pan Xiuli 323f255a5b CI: travis: add QEMU boot test for skl, kbl, cnl
Add QEMU boot test to remaining unsupported SKL, KBL, CNL.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-18 08:27:29 +00:00
Pan Xiuli 771bcd5fbb CI: travis: add more QEMU boot test
Enable more platform's qemu boot test

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-14 13:58:29 +00:00
Pan Xiuli 56314cdf9c CI: travis: add tools build
Add tools build into travis CI.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-28 13:34:15 +08:00
Liam Girdwood fe1c63b528 ci: travis: Update travis to use new xtensa-buildall.sh args
Updated args on xtensa-buildall.sh.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-09 16:16:38 +00:00
Pan Xiuli 97ea0dc656 ci: travis: enable boot up test on BYT and CHT
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-12 17:06:10 +08:00
Pan Xiuli 0067b1b598 ci: traris: seprate job to show build stage
Seprate build scripts to show build stage of each platforms.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-09 17:42:24 +08:00
Liam Girdwood 64ee297e5e ci: travis: Add host build to travis.
Make sure we build for host as part of CI.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-09-26 11:34:54 +08:00
Pan Xiuli 5a2c6bae76 ci: travis: add git tag
Travis CI will checkout to commit and no tag is there. Add a tag in the
travis CI script.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-09-26 11:34:54 +08:00
Liam Girdwood 1674061b20 Revert "ci: travis: Add host build to travis."
This reverts commit a28476a2e7.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-09-25 16:25:13 +01:00
Liam Girdwood a28476a2e7 ci: travis: Add host build to travis.
Make sure we build for host as part of CI.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-09-25 14:46:21 +01:00
Pan Xiuli 11928f6555 ci: travis: update to use docker hub image
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-08-07 21:48:57 +08:00
Liam Girdwood c1123ec2ab ci: travis: setup apt.conf
Needs revisiting after CI up and running

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-08-02 02:07:43 +01:00
Liam Girdwood af84ef2c63 ci: travis: Update path to DockerFile
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-08-02 01:59:11 +01:00
Liam Girdwood df54d2e451 ci: travis: remove \ as they dont pass yaml parsing
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-08-02 01:45:50 +01:00
Liam Girdwood 7364f0ce88 ci: travis-ci: add initial travis.ci configuration file.
This file should install a docker image and build all targets using gcc.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-08-02 00:52:43 +01:00