David Brown | 0fc2d47 | 2017-03-29 16:27:25 -0600 | [diff] [blame] | 1 | # Travis configuration. Build the simulator and run its tests. |
| 2 | |
Fabio Utzig | 729139f | 2020-01-04 17:44:11 -0300 | [diff] [blame] | 3 | addons: |
| 4 | apt: |
| 5 | packages: |
| 6 | - "python3-pip" |
| 7 | |
David Brown | 0fc2d47 | 2017-03-29 16:27:25 -0600 | [diff] [blame] | 8 | language: rust |
Fabio Utzig | 5b98910 | 2017-09-04 16:27:51 -0300 | [diff] [blame] | 9 | |
Fabio Utzig | 59bcb37 | 2019-03-07 13:20:02 -0300 | [diff] [blame] | 10 | cache: |
| 11 | directories: |
| 12 | - $HOME/TOOLCHAIN |
| 13 | - cargo |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 14 | |
| 15 | matrix: |
| 16 | include: |
| 17 | # Runs each value defined in $SINGLE_FEATURES by itself in the order |
| 18 | # the were defined. |
| 19 | - os: linux |
Fabio Utzig | 3c469bc | 2019-05-24 17:46:07 -0300 | [diff] [blame] | 20 | env: SINGLE_FEATURES="sig-ecdsa sig-ed25519 enc-kw bootstrap" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 21 | - os: linux |
Fabio Utzig | 8cecedc | 2019-11-28 10:27:27 -0300 | [diff] [blame] | 22 | env: SINGLE_FEATURES="none sig-rsa sig-rsa3072 overwrite-only validate-primary-slot swap-move" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 23 | - os: linux |
Fabio Utzig | 1e1c1c6 | 2020-04-02 11:26:10 -0300 | [diff] [blame] | 24 | env: SINGLE_FEATURES="enc-rsa enc-ec256 enc-x25519" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 25 | |
| 26 | # Values defined in $MULTI_FEATURES consist of any number of features |
| 27 | # to be enabled at the same time. The list of multi-values should be |
| 28 | # separated by ',' and each list of values is run sequentially in the |
| 29 | # defined order. |
| 30 | - os: linux |
David Brown | 005e7a0 | 2019-11-15 12:08:17 -0700 | [diff] [blame] | 31 | env: MULTI_FEATURES="sig-rsa overwrite-only large-write,sig-ecdsa overwrite-only large-write,multiimage overwrite-only large-write" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 32 | - os: linux |
Fabio Utzig | 3901d32 | 2019-07-30 12:50:09 -0300 | [diff] [blame] | 33 | env: MULTI_FEATURES="sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot,sig-rsa multiimage validate-primary-slot" TEST=sim |
Fabio Utzig | 9b7a258 | 2018-12-03 10:40:05 -0200 | [diff] [blame] | 34 | - os: linux |
David Brown | 005e7a0 | 2019-11-15 12:08:17 -0700 | [diff] [blame] | 35 | env: MULTI_FEATURES="enc-kw overwrite-only large-write,enc-rsa overwrite-only large-write" TEST=sim |
Fabio Utzig | e35ed56 | 2018-12-14 06:50:06 -0200 | [diff] [blame] | 36 | - os: linux |
Fabio Utzig | 8cecedc | 2019-11-28 10:27:27 -0300 | [diff] [blame] | 37 | env: MULTI_FEATURES="sig-rsa enc-rsa validate-primary-slot,swap-move enc-rsa sig-rsa validate-primary-slot" TEST=sim |
Fabio Utzig | 9b97b13 | 2018-12-18 17:21:51 -0200 | [diff] [blame] | 38 | - os: linux |
Fabio Utzig | 1e1c1c6 | 2020-04-02 11:26:10 -0300 | [diff] [blame] | 39 | env: MULTI_FEATURES="sig-rsa enc-kw validate-primary-slot bootstrap,sig-ed25519 enc-x25519 validate-primary-slot" TEST=sim |
Fabio Utzig | b006309 | 2018-12-27 16:14:37 -0200 | [diff] [blame] | 40 | - os: linux |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 41 | env: MULTI_FEATURES="sig-ecdsa enc-kw validate-primary-slot" TEST=sim |
Fabio Utzig | ea0de00 | 2019-08-19 11:13:23 -0300 | [diff] [blame] | 42 | - os: linux |
David Brown | 005e7a0 | 2019-11-15 12:08:17 -0700 | [diff] [blame] | 43 | env: MULTI_FEATURES="sig-rsa validate-primary-slot overwrite-only large-write,sig-ecdsa enc-ec256 validate-primary-slot" TEST=sim |
David Brown | 2ee5f7f | 2020-01-13 14:04:01 -0700 | [diff] [blame] | 44 | - os: linux |
| 45 | env: MULTI_FEATURES="sig-rsa validate-primary-slot overwrite-only downgrade-prevention" TEST=sim |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 46 | |
Fabio Utzig | 59bcb37 | 2019-03-07 13:20:02 -0300 | [diff] [blame] | 47 | - os: linux |
| 48 | language: go |
| 49 | env: TEST=mynewt |
| 50 | go: |
Fabio Utzig | cf17561 | 2019-06-27 09:17:32 -0300 | [diff] [blame] | 51 | - "1.12" |
Fabio Utzig | 59bcb37 | 2019-03-07 13:20:02 -0300 | [diff] [blame] | 52 | |
Fabio Utzig | 14301ab | 2020-04-16 17:20:38 -0300 | [diff] [blame] | 53 | - os: linux |
| 54 | language: python |
| 55 | env: TEST=imgtool |
| 56 | |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 57 | before_install: |
| 58 | - | |
| 59 | if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 60 | ./ci/check-signed-off-by.sh |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 61 | if [ $? -ne 0 ]; then |
| 62 | exit 1 |
| 63 | fi |
| 64 | fi |
| 65 | |
| 66 | install: |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 67 | - ./ci/${TEST}_install.sh |
Fabio Utzig | 0e12f6c | 2018-10-12 09:52:29 -0700 | [diff] [blame] | 68 | |
David Brown | 0fc2d47 | 2017-03-29 16:27:25 -0600 | [diff] [blame] | 69 | script: |
Fabio Utzig | 94a9b26 | 2019-03-07 13:15:02 -0300 | [diff] [blame] | 70 | - ./ci/${TEST}_run.sh |
Fabio Utzig | 2e86e13 | 2017-07-23 10:21:03 -0300 | [diff] [blame] | 71 | |
| 72 | notifications: |
| 73 | slack: |
| 74 | rooms: |
Fabio Utzig | ac6a68e | 2017-09-12 07:52:04 -0300 | [diff] [blame] | 75 | - 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] | 76 | on_success: always |