Commit Graph

116 Commits

Author SHA1 Message Date
Anas Nashif 831e7df993 ci: use latest docker (0.11.0)
Needed for EDTT testing.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-01-21 18:13:28 -05:00
Kumar Gala ec221ed191 ci: use v0.10.1 docker image
Bump to v0.10.1 Docker Image to get access to SDK 0.11.0-alpha8,
Ubuntu 18.04, gcc-9, clang-9, and python 3.6.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-12-18 10:15:45 +01:00
Kumar Gala 2cad8d20ee ci: updates to fix pylint commit test
Update to CI image 0.9.1 to have pylint installed.  Bump ci-tools sha
that re-enables running the pylint test.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-09-13 10:00:16 -05:00
Anas Nashif 650d443843 ci: use v0.9 docker image
This image includes latest dependencies.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-08-25 17:47:00 -04:00
Kumar Gala 00fab87c60 ci: Update to using SDK 0.10.3
Update SDK version to 0.10.3.
Use Docker image 0.8.2 that includes an install of that SDK version.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-08-16 23:39:26 +02:00
Kumar Gala 90f5859f86 ci: Update to using SDK 0.10.2
Update SDK version to 0.10.2 to pick up new qemu and risc-v support.
Use Docker image 0.8.1 that includes an install of that SDK version.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-08-08 21:56:45 +02:00
Marti Bolivar 2b3d9df1d7 west: require v0.6.0 or higher
The main change is the elimination of the bootstrapper, a design flaw
/ misfeature.

Update the documentation to be compatible with the 0.6.x releases as
well. This has to be done atomically, as there were incompatible
changes.  Make use of the versionchanged and versionadded directives
to begin keeping track of how these APIs are evolving.

(Note that west 0.6.0 will remain compatible with the extension
commands in Zephyr v1.14 LTS as long as that is still alive. This
change is targeted towards Zephyr 2.0 users.)

This requires a bump in the shippable container and allows us to
simplify the west_commands test procedure.

Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>
2019-08-05 15:17:45 +02:00
Anas Nashif eaf994a7fc ci: move to new docker with new SDK
Use new docker image with SDK 0.10.1.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-06-14 09:26:40 -04:00
Anas Nashif 2261d3e4c1 ci: send email to builds@ mailing list if master fails
CI always runs after new PRs are merged into master. Report failures to
mailing list to get more attention if master fails to build.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-05-06 13:39:30 -04:00
Anas Nashif 22a624a81e ci: only build on specified branches
Do not start CI on random branches created in the tree.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-04-17 09:53:31 -04:00
Kumar Gala 7aa98f7196 ci: Bump to image 0.6.4 for west
Move to using CI image to 0.6.4 for west version 0.5.6

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-03-21 09:00:57 -05:00
Kumar Gala 0def7cc9cc ci: Move to using SDK 0.10.0
Change over to ci image 0.6.3 to get released SDK 0.10.0

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-03-11 11:01:08 -05:00
Anas Nashif b0c71afc1a ci: Use latest docker image: 0.6.1
Use latest docker image with renode and an update to the SDK pre-release
0.10.0-rc3 (not used by default).

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-19 11:30:27 -05:00
Anas Nashif dabc99243d ci: do not send CI messages to slack
Reduce noise from shippable on slack, nobody really looks at those
messages.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-01 19:04:55 -05:00
Anas Nashif 401395f0fd ci: install v0.6 docker image
This image has both west in pytest and most recent sdk-ng release.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-01-29 10:20:38 -05:00
Carles Cufi 6b00bc9357 west: Multiple CI fixes for the topic-west branch
In order to be able to merge the topic branch, we require a few
fixes to CI.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-01-29 10:15:01 +01:00
Marti Bolivar e03ae5ba7e .shippable.yml: HACK: install latest west
After some discussion, we've decided to ensure that shippable runs
with the latest west bootstrapper on PyPI by making that happen in
.shippable.yml for now, rather than updating our CI container.

Signed-off-by: Marti Bolivar <marti@foundries.io>
2019-01-29 10:15:01 +01:00
Anas Nashif b7b25127a4 ci: reduce minions to 5
Have more PRs build in parallel.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-01-15 17:21:29 -05:00
Anas Nashif 07b221c24d ci: update to v0.5-rc5 docker file
New docker file with latest cmake 3.13.1.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-01-02 16:44:57 -05:00
Kumar Gala 0b9cfe70ed ci: bump number of builders to 7
Temp bump number of builders to 7 since we getting a lot of timeout
issues with normal PRs.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-18 10:57:28 -06:00
Kumar Gala 32ce21961b ci: update docker image to 0.5-rc4 to get sdk-ng
The 0.5-rc4 ci docker image adds the beta2 of sdk-ng so we can use that
for testing.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-14 08:09:24 -06:00
Anas Nashif fa963a94a1 ci: do not use pull request branch with commit based CI
Use correct variable for branch when not in pull request mode.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-12-03 19:28:01 -05:00
Anas Nashif 45cbc81160 ci: pass pull request number to CI script
For further processing, pass pull request number to the CI script.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-12-03 13:00:02 -05:00
Anas Nashif 5dd2593bcd ci: remove sanitycheck options from .shippable
They are now defined in CI script directly.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-12-03 13:00:02 -05:00
Anas Nashif d95ce03c1d ci: define BSIM_* variables in ci script directly
Rather than pass them as options, just set it directly in the CI script.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-12-03 13:00:02 -05:00
Anas Nashif a0a1bffd1c ci: move pos processing to the CI script
Move post processing to script and remove duplicatated code.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-12-03 13:00:02 -05:00
Anas Nashif 7a85c19f1a ci: update to latest docker image
Added the Pillow module for dealing with fonts for the display
subsystem.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-22 12:17:19 -05:00
Alberto Escolar Piedras 2d580a8339 ci: Add missing option to control placement of BT tests results file
Added a missing option in run_ci.sh to control the placement of the
xml results file. (Before it was just propagated thru the enviroment)
+
Changed .shippable to use this option when callign it.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-11-21 09:42:46 -05:00
Anas Nashif 4b366f93ca ci: update to docker image 0.5-rc2
This has some fixes to permission issues with installed
scancode-toolkit.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-20 16:36:10 -05:00
Anas Nashif 10b1ee149f ci: use v0.4-rc14 image
- Has cmake 3.8.2 that matches min. required version
- Has west pre-installed
- Uses latest python dependencies from scripts/requirements.txt
- remove ISSM toolchain
- added scancode-toolkit for scanning licenses and copyrights.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-19 17:22:23 -05:00
Alberto Escolar Piedras 917711fd8a ci: Run bsim_bt tests and collect coverage results
Compile and run the tests avaliable in bsim_bt
and collect the coverage results into the coverage report.

Also, detect if bsim's component folder already contains the
nRF52 HW models, and if it does instead of trying to fetch
them again (which will fail) check that the right versio is
present. This should ease testing locally.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-11-13 11:14:19 -05:00
Anas Nashif 0a63947abc ci: move ci scripting from .shippable to a script
move CI scripting to a dedicated script. For example, to simulate what
is run in CI when a pull request is submitted:

./scripts/ci/run_ci.sh -b master -r upstream  -p

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-10 13:09:00 -05:00
Anas Nashif 1c3cbc5eba ci: use sdk 0.9.5
Use new SDK version 0.9.5.
- new qemu
- new dtc
- new openocd

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-05 11:00:38 -05:00
Alberto Escolar Piedras 96b38ad694 shippable: Add support for nrf52_bsim board
Use the docker image which has BabbleSim precompiled

Fetch the NRF52 hardware models required by the nrf52_bsim board
and compile them.

Collect the coverage report from the nrf52_bsim board

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-10-15 09:36:37 -04:00
Anas Nashif d5d902a140 Revert "sanitycheck: fail on check_compliance issues"
This reverts commit 43398eb240.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-09-23 16:40:13 -04:00
Anas Nashif 43398eb240 sanitycheck: fail on check_compliance issues
We were forcing sucess even if check_compliance had failed.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-09-23 13:04:05 -04:00
Sebastian Bøe 84b0448e39 ci: Print the toolchain database when CI fails
CI is failing sporadically with a corrupted
ToolchainCapabilityDatabase.cmake file.

To gain insight into how the file is corrupted we print it to the log.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-09-19 08:15:09 -04:00
Anas Nashif ac419c4a99 ci: Use Ninja with sanitycheck
Ninja is much faster than make in the context of CI. The issues with
ninja and parallel builds has been partially resolved in sanitycheck.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-09-18 23:14:38 -04:00
Anas Nashif 5f5bd8b9f2 ci: disable cache
Disable cache which increases total execution time without any visible
benefits in the current setup. Need to revisit how we can better use
ccache for CI builds.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-09-18 23:14:38 -04:00
Anas Nashif 7e625ab869 ci: reduce minions to 5
Go back to 5 minions, 7 minions is increasing the queue significantly
without any improvements visible in total execution time.

This was changed to 7 to address PRs changing many boards and tests,
which is the exception and not the rule.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-09-18 23:14:38 -04:00
Kumar Gala 0b48df350f ci: Increase number of build slaves to 7
Since builds have drastically increased in time, we end up timing out CI
if we have a larger number of tests to build.  Try bumping up the number
of slaves to 7 and see if that helps.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-14 13:11:21 -05:00
Anas Nashif 27b9e2ef6f ci: Handle errors and exit on them
Do not continue if intermediate steps fail.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-08-16 13:22:10 -07:00
Anas Nashif 448cd0c0ce ci: handle documentation errors in ci
Path change of the warning file let a few errors slipe by..

Fixes #9098

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-07-24 19:26:52 -04:00
Anas Nashif 8cf49371af ci: use latest docker image v0.4-rc7
This one comes with gcc-arm-none-eabi-7-2018-q2-update

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-07-05 10:39:50 -04:00
Alberto Escolar Piedras 1545b378c8 CI: explicitly enable compiling w coverage in sanitycheck
Now that the native_posix board is not built by default
with coverage, and that sanitycheck has an option to set it to,
let's explicitly tell sanitycheck to build unit tests and
for the native_board with coverage enabled.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-07-03 08:36:06 -04:00
Anas Nashif 7e69e9a441 ci: remove tests and samples from coverage reports
Tests and samples are not part of the Zephyr code and should not
contribute to the final coverage reports. This will allow us to get
exact numbers about what is being covered or not in CI without the need
to go and look into files individually.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-07-02 12:42:08 -04:00
Anas Nashif 5dce5ea56e ci: user latest docker file
- Updated ccache
- Updated documentation tools
- Add ESP32 toolchains and IDF

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-06-18 12:41:22 -04:00
Anas Nashif 386b3e6d54 ci: increase ccache size
We are running 5 minions with almost 2000 tests, increase the cache size
to increase the hit rate.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-05-31 00:37:24 -04:00
Anas Nashif fac7108ecc ci: remove ext/ from coverage
ext/ code is not always entirely used or tested from Zephyr, we use only
subset of the features and available code. To get accurate coverage
data, exclude the files in ext/ from the coverage report.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-05-31 00:37:24 -04:00
Anas Nashif df9210ca56 ci: use new docker file with new SDK
Use docker image 0.4-rc2 with Zephyr SDK 0.9.3

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-05-15 12:10:32 +03:00