2017-03-30 06:27:25 +08:00
|
|
|
# Travis configuration. Build the simulator and run its tests.
|
|
|
|
|
|
|
|
language: rust
|
2017-09-05 03:27:51 +08:00
|
|
|
|
2019-03-08 00:20:02 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/TOOLCHAIN
|
|
|
|
- cargo
|
2018-10-13 00:52:29 +08:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Runs each value defined in $SINGLE_FEATURES by itself in the order
|
|
|
|
# the were defined.
|
|
|
|
- os: linux
|
2019-05-25 04:46:07 +08:00
|
|
|
env: SINGLE_FEATURES="sig-ecdsa sig-ed25519 enc-kw bootstrap" TEST=sim
|
2018-10-13 00:52:29 +08:00
|
|
|
- os: linux
|
2019-05-09 05:51:55 +08:00
|
|
|
env: SINGLE_FEATURES="none sig-rsa sig-rsa3072 overwrite-only validate-primary-slot" TEST=sim
|
2018-10-13 00:52:29 +08:00
|
|
|
- os: linux
|
2019-03-08 00:15:02 +08:00
|
|
|
env: SINGLE_FEATURES="enc-rsa" TEST=sim
|
2018-10-13 00:52:29 +08:00
|
|
|
|
|
|
|
# Values defined in $MULTI_FEATURES consist of any number of features
|
|
|
|
# to be enabled at the same time. The list of multi-values should be
|
|
|
|
# separated by ',' and each list of values is run sequentially in the
|
|
|
|
# defined order.
|
|
|
|
- os: linux
|
2019-06-17 22:01:43 +08:00
|
|
|
env: MULTI_FEATURES="sig-rsa overwrite-only,sig-ecdsa overwrite-only,multiimage overwrite-only" TEST=sim
|
2018-10-13 00:52:29 +08:00
|
|
|
- os: linux
|
2019-02-18 18:50:22 +08:00
|
|
|
env: MULTI_FEATURES="sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot" TEST=sim
|
2018-12-03 20:40:05 +08:00
|
|
|
- os: linux
|
2019-03-08 00:15:02 +08:00
|
|
|
env: MULTI_FEATURES="enc-kw overwrite-only,enc-rsa overwrite-only" TEST=sim
|
2018-12-14 16:50:06 +08:00
|
|
|
- os: linux
|
2019-02-18 18:50:22 +08:00
|
|
|
env: MULTI_FEATURES="sig-rsa enc-rsa validate-primary-slot" TEST=sim
|
2018-12-19 03:21:51 +08:00
|
|
|
- os: linux
|
2019-02-18 18:50:22 +08:00
|
|
|
env: MULTI_FEATURES="sig-rsa enc-kw validate-primary-slot bootstrap" TEST=sim
|
2018-12-28 02:14:37 +08:00
|
|
|
- os: linux
|
2019-02-18 18:50:22 +08:00
|
|
|
env: MULTI_FEATURES="sig-ecdsa enc-kw validate-primary-slot" TEST=sim
|
2018-10-13 00:52:29 +08:00
|
|
|
|
|
|
|
# FIXME: this test actually fails and must be fixed
|
|
|
|
#- os: linux
|
2019-02-18 18:50:22 +08:00
|
|
|
# env: MULTI_FEATURES="sig-rsa validate-primary-slot overwrite-only"
|
2018-10-13 00:52:29 +08:00
|
|
|
|
2019-03-08 00:20:02 +08:00
|
|
|
- os: linux
|
|
|
|
language: go
|
|
|
|
env: TEST=mynewt
|
|
|
|
go:
|
2019-06-27 20:17:32 +08:00
|
|
|
- "1.12"
|
2019-03-08 00:20:02 +08:00
|
|
|
|
2018-10-13 00:52:29 +08:00
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
2019-03-08 00:15:02 +08:00
|
|
|
./ci/check-signed-off-by.sh
|
2018-10-13 00:52:29 +08:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
install:
|
2019-03-08 00:15:02 +08:00
|
|
|
- ./ci/${TEST}_install.sh
|
2018-10-13 00:52:29 +08:00
|
|
|
|
2017-03-30 06:27:25 +08:00
|
|
|
script:
|
2019-03-08 00:15:02 +08:00
|
|
|
- ./ci/${TEST}_run.sh
|
2017-07-23 21:21:03 +08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
rooms:
|
2017-09-12 18:52:04 +08:00
|
|
|
- secure: "Tg9ZvJfb6e4QSEsxUvwW2MIqbuNRxD4nAOkgs8eopj/fRtqN6Zk06NVSeMmYcZunDFJXUSzYANBsF98OtaaUlm4WVt2T0ZFBJZrOYfIv18/zXCjYa04sDxur57F1ZYTYKyRpdUkfzPd/rGE4jKLQNcia+r/BTQbJkcZbXeg5/6cUeMP1so8/o0oMhSQP+GH0fLbyLzx3VPE8zu6+j2fCFC7R3idxtfO9VtsKlubfi3HgPgXTs+DEAAA8aoOku2esjFSFXTtdUFGz90YzyShZvtMcRg3Grp9+PZAsJwWk4eKSonKCO0DScfPUlMZbJcV7VsmyTxYKLLsGRZae6ZBH+XLfx5XeqgtgCor3FYx2dUXYfV9y8VvERDdossB0gZ/V2OUGePctDefiORytV6dMa7X3AfSdosgs/tjG4kbf+PMaVULzwF6dd3CdsxdClSl68UQPWA6wC2TEyo1EQea8jgZU6heLustZaQZhBkFkr/6j75XeGBjPw2fgVRkgg/OnTOYmo7N8181wOU+xORIEO1BtYmgRpc0cgpm4H9457diSHG1D2SoNy4tiQPCW2enN00QNGK5pZSL/FGA/ReUcALgAW0QcOljjU2bUSGPxo/VAi5ZyljWgVAGQ5qHJ4jgdfPf7VJUzCVH64G1S5+0gZPpO6vvvPdZtqeXrfBZMOBw="
|
2017-07-23 21:21:03 +08:00
|
|
|
on_success: always
|