David Brown | 0fc2d47 | 2017-03-29 16:27:25 -0600 | [diff] [blame] | 1 | # Travis configuration. Build the simulator and run its tests. |
| 2 | |
| 3 | language: rust |
Fabio Utzig | 5b98910 | 2017-09-04 16:27:51 -0300 | [diff] [blame] | 4 | |
Fabio Utzig | 59bcb37 | 2019-03-07 13:20:02 -0300 | [diff] [blame] | 5 | cache: |
| 6 | directories: |
| 7 | - $HOME/TOOLCHAIN |
| 8 | - cargo |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 9 | |
| 10 | matrix: |
| 11 | include: |
| 12 | # Runs each value defined in $SINGLE_FEATURES by itself in the order |
| 13 | # the were defined. |
| 14 | - os: linux |
Fabio Utzig | 3c469bc | 2019-05-24 17:46:07 -0300 | [diff] [blame] | 15 | env: SINGLE_FEATURES="sig-ecdsa sig-ed25519 enc-kw bootstrap" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 16 | - os: linux |
Fabio Utzig | 2dc9f8f | 2019-05-08 18:51:55 -0300 | [diff] [blame] | 17 | env: SINGLE_FEATURES="none sig-rsa sig-rsa3072 overwrite-only validate-primary-slot" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 18 | - os: linux |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 19 | env: SINGLE_FEATURES="enc-rsa" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 20 | |
| 21 | # Values defined in $MULTI_FEATURES consist of any number of features |
| 22 | # to be enabled at the same time. The list of multi-values should be |
| 23 | # separated by ',' and each list of values is run sequentially in the |
| 24 | # defined order. |
| 25 | - os: linux |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 26 | env: MULTI_FEATURES="sig-rsa overwrite-only,sig-ecdsa overwrite-only" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 27 | - os: linux |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 28 | env: MULTI_FEATURES="sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot" TEST=sim |
Fabio Utzig | 9b7a258 | 2018-12-03 10:40:05 -0200 | [diff] [blame] | 29 | - os: linux |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 30 | env: MULTI_FEATURES="enc-kw overwrite-only,enc-rsa overwrite-only" TEST=sim |
Fabio Utzig | e35ed56 | 2018-12-14 06:50:06 -0200 | [diff] [blame] | 31 | - os: linux |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 32 | env: MULTI_FEATURES="sig-rsa enc-rsa validate-primary-slot" TEST=sim |
Fabio Utzig | 9b97b13 | 2018-12-18 17:21:51 -0200 | [diff] [blame] | 33 | - os: linux |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 34 | env: MULTI_FEATURES="sig-rsa enc-kw validate-primary-slot bootstrap" TEST=sim |
Fabio Utzig | b006309 | 2018-12-27 16:14:37 -0200 | [diff] [blame] | 35 | - os: linux |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 36 | env: MULTI_FEATURES="sig-ecdsa enc-kw validate-primary-slot" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 37 | |
| 38 | # FIXME: this test actually fails and must be fixed |
| 39 | #- os: linux |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 40 | # env: MULTI_FEATURES="sig-rsa validate-primary-slot overwrite-only" |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 41 | |
Fabio Utzig | 59bcb37 | 2019-03-07 13:20:02 -0300 | [diff] [blame] | 42 | - os: linux |
| 43 | language: go |
| 44 | env: TEST=mynewt |
| 45 | go: |
Fabio Utzig | cf17561 | 2019-06-27 09:17:32 -0300 | [diff] [blame] | 46 | - "1.12" |
Fabio Utzig | 59bcb37 | 2019-03-07 13:20:02 -0300 | [diff] [blame] | 47 | |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 48 | before_install: |
| 49 | - | |
| 50 | if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 51 | ./ci/check-signed-off-by.sh |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 52 | if [ $? -ne 0 ]; then |
| 53 | exit 1 |
| 54 | fi |
| 55 | fi |
| 56 | |
| 57 | install: |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 58 | - ./ci/${TEST}_install.sh |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 59 | |
David Brown | 0fc2d47 | 2017-03-29 16:27:25 -0600 | [diff] [blame] | 60 | script: |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 61 | - ./ci/${TEST}_run.sh |
Fabio Utzig | 2e86e13 | 2017-07-23 10:21:03 -0300 | [diff] [blame] | 62 | |
| 63 | notifications: |
| 64 | slack: |
| 65 | rooms: |
Fabio Utzig | ac6a68e | 2017-09-12 07:52:04 -0300 | [diff] [blame] | 66 | - secure: "Tg9ZvJfb6e4QSEsxUvwW2MIqbuNRxD4nAOkgs8eopj/fRtqN6Zk06NVSeMmYcZunDFJXUSzYANBsF98OtaaUlm4WVt2T0ZFBJZrOYfIv18/zXCjYa04sDxur57F1ZYTYKyRpdUkfzPd/rGE4jKLQNcia+r/BTQbJkcZbXeg5/6cUeMP1so8/o0oMhSQP+GH0fLbyLzx3VPE8zu6+j2fCFC7R3idxtfO9VtsKlubfi3HgPgXTs+DEAAA8aoOku2esjFSFXTtdUFGz90YzyShZvtMcRg3Grp9+PZAsJwWk4eKSonKCO0DScfPUlMZbJcV7VsmyTxYKLLsGRZae6ZBH+XLfx5XeqgtgCor3FYx2dUXYfV9y8VvERDdossB0gZ/V2OUGePctDefiORytV6dMa7X3AfSdosgs/tjG4kbf+PMaVULzwF6dd3CdsxdClSl68UQPWA6wC2TEyo1EQea8jgZU6heLustZaQZhBkFkr/6j75XeGBjPw2fgVRkgg/OnTOYmo7N8181wOU+xORIEO1BtYmgRpc0cgpm4H9457diSHG1D2SoNy4tiQPCW2enN00QNGK5pZSL/FGA/ReUcALgAW0QcOljjU2bUSGPxo/VAi5ZyljWgVAGQ5qHJ4jgdfPf7VJUzCVH64G1S5+0gZPpO6vvvPdZtqeXrfBZMOBw=" |
Fabio Utzig | 2e86e13 | 2017-07-23 10:21:03 -0300 | [diff] [blame] | 67 | on_success: always |