Paul Bakker | 3ad3aa3 | 2014-04-17 16:16:05 +0200 | [diff] [blame] | 1 | language: c |
Gilles Peskine | c9cdd21 | 2020-04-21 22:13:43 +0200 | [diff] [blame] | 2 | compiler: gcc |
Manuel Pégourié-Gonnard | c84d7fb | 2015-08-04 15:59:34 +0200 | [diff] [blame] | 3 | sudo: false |
Manuel Pégourié-Gonnard | 2c99800 | 2015-08-04 18:06:02 +0200 | [diff] [blame] | 4 | cache: ccache |
Simon Butcher | 3459c74 | 2018-11-22 10:14:03 +0000 | [diff] [blame] | 5 | |
Gilles Peskine | d0f543a | 2020-04-21 22:18:58 +0200 | [diff] [blame] | 6 | jobs: |
| 7 | include: |
Gilles Peskine | 10cb160 | 2020-04-26 21:26:42 +0200 | [diff] [blame] | 8 | - name: basic checks and reference configurations |
Gilles Peskine | b49a457 | 2020-04-23 23:45:55 +0200 | [diff] [blame] | 9 | addons: |
| 10 | apt: |
| 11 | packages: |
Gilles Peskine | a5ced5b | 2020-04-25 23:36:00 +0200 | [diff] [blame] | 12 | - gnutls-bin |
Gilles Peskine | b49a457 | 2020-04-23 23:45:55 +0200 | [diff] [blame] | 13 | - doxygen |
| 14 | - graphviz |
Gilles Peskine | f2f39dd | 2020-04-25 22:30:31 +0200 | [diff] [blame] | 15 | - gcc-arm-none-eabi |
| 16 | - libnewlib-arm-none-eabi |
Manuel Pégourié-Gonnard | cbb365c | 2020-08-18 10:31:36 +0200 | [diff] [blame] | 17 | - gcc-arm-linux-gnueabi |
Manuel Pégourié-Gonnard | 9a260a6 | 2021-07-06 09:44:59 +0200 | [diff] [blame] | 18 | - libc6-dev-armel-cross |
Gilles Peskine | a38f368 | 2020-04-25 21:15:07 +0200 | [diff] [blame] | 19 | language: python # Needed to get pip for Python 3 |
| 20 | python: 3.5 # version from Ubuntu 16.04 |
| 21 | install: |
Gilles Peskine | 6d253cc | 2021-11-17 19:29:38 +0100 | [diff] [blame] | 22 | - scripts/min_requirements.py |
Gilles Peskine | d0f543a | 2020-04-21 22:18:58 +0200 | [diff] [blame] | 23 | script: |
Gilles Peskine | 3c7ffd7 | 2020-04-21 22:23:35 +0200 | [diff] [blame] | 24 | - tests/scripts/all.sh -k 'check_*' |
Gilles Peskine | a2d3ec2 | 2020-04-25 21:31:04 +0200 | [diff] [blame] | 25 | - tests/scripts/all.sh -k test_default_out_of_box |
Manuel Pégourié-Gonnard | cbb365c | 2020-08-18 10:31:36 +0200 | [diff] [blame] | 26 | - tests/scripts/all.sh -k test_ref_configs |
| 27 | - tests/scripts/all.sh -k build_arm_linux_gnueabi_gcc_arm5vte build_arm_none_eabi_gcc_m0plus |
Gilles Peskine | d0f543a | 2020-04-21 22:18:58 +0200 | [diff] [blame] | 28 | |
Gilles Peskine | a2d3ec2 | 2020-04-25 21:31:04 +0200 | [diff] [blame] | 29 | - name: full configuration |
Gilles Peskine | 35e58d8 | 2022-11-23 14:30:00 +0100 | [diff] [blame] | 30 | os: linux |
| 31 | dist: focal |
| 32 | addons: |
| 33 | apt: |
| 34 | packages: |
| 35 | - clang-10 |
| 36 | - gnutls-bin |
Gilles Peskine | d0f543a | 2020-04-21 22:18:58 +0200 | [diff] [blame] | 37 | script: |
Gilles Peskine | 35e58d8 | 2022-11-23 14:30:00 +0100 | [diff] [blame] | 38 | # Do a manual build+test sequence rather than using all.sh, |
| 39 | # because there's no all.sh component that does what we want, |
| 40 | # which is a build with Clang >= 10 and ASan, running all the SSL |
| 41 | # testing. |
| 42 | # - The clang executable in the default PATH is Clang 7 on |
| 43 | # Travis's focal instances, but we want Clang >= 10. |
| 44 | # - Running all the SSL testing requires a specific set of |
| 45 | # OpenSSL and GnuTLS versions and we don't want to bother |
| 46 | # with those on Travis. |
| 47 | # So we explicitly select clang-10 as the compiler, and we |
| 48 | # have ad hoc restrictions on SSL testing based on what is |
| 49 | # passing at the time of writing. We will remove these limitations |
| 50 | # gradually. |
| 51 | - make CC=clang-10 CFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=all -O2' LDFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=all' |
| 52 | - make test |
| 53 | - programs/test/selftest |
| 54 | - tests/scripts/test_psa_constant_names.py |
Gilles Peskine | 53740c8 | 2022-11-25 11:33:11 +0100 | [diff] [blame] | 55 | # Exclude a few test cases that are failing mysteriously. |
| 56 | # https://github.com/Mbed-TLS/mbedtls/issues/6660 |
Gilles Peskine | a1d41c0 | 2022-11-25 13:57:34 +0100 | [diff] [blame] | 57 | - tests/ssl-opt.sh -e 'Fallback SCSV:\ .*list' |
Pengyu Lv | 9516789 | 2023-02-23 16:40:26 +0800 | [diff] [blame] | 58 | # Modern OpenSSL does not support null or ancient ciphers. |
| 59 | - tests/compat.sh -p OpenSSL -e 'NULL\|DES\|RC4' |
Gilles Peskine | 35e58d8 | 2022-11-23 14:30:00 +0100 | [diff] [blame] | 60 | - tests/scripts/travis-log-failure.sh |
| 61 | # GnuTLS supports CAMELLIA but compat.sh doesn't properly enable it. |
| 62 | # Modern GnuTLS does not support DES. |
| 63 | # One NULL cipher suite is strangely missing in pre-1.2 protocol |
| 64 | # versions (it works with (D)TLS1.2, but don't bother). |
| 65 | - tests/compat.sh -p GnuTLS -e 'CAMELLIA\|DES\|TLS-RSA-WITH-NULL-SHA256' |
| 66 | - tests/scripts/travis-log-failure.sh |
| 67 | - tests/context-info.sh |
Gilles Peskine | d0f543a | 2020-04-21 22:18:58 +0200 | [diff] [blame] | 68 | |
Gilles Peskine | 0402510 | 2020-04-25 23:25:10 +0200 | [diff] [blame] | 69 | - name: Windows |
| 70 | os: windows |
| 71 | script: |
Gilles Peskine | 23d249a | 2020-04-26 13:12:55 +0200 | [diff] [blame] | 72 | - scripts/windows_msbuild.bat v141 # Visual Studio 2017 |
Gilles Peskine | 0402510 | 2020-04-25 23:25:10 +0200 | [diff] [blame] | 73 | |
Janos Follath | 831a65f | 2016-03-21 09:22:58 +0000 | [diff] [blame] | 74 | after_failure: |
Simon Butcher | 6eaf365 | 2016-04-10 15:11:27 +0100 | [diff] [blame] | 75 | - tests/scripts/travis-log-failure.sh |
Gilles Peskine | d0f543a | 2020-04-21 22:18:58 +0200 | [diff] [blame] | 76 | |
Paul Bakker | 05c3774 | 2014-05-02 16:19:04 +0200 | [diff] [blame] | 77 | env: |
| 78 | global: |
Manuel Pégourié-Gonnard | c8530df | 2019-02-27 10:46:56 +0100 | [diff] [blame] | 79 | - SEED=1 |
Paul Elliott | 08f803f | 2022-05-04 14:19:44 +0100 | [diff] [blame] | 80 | - secure: "JECCru6HASpKZ0OLfHh8f/KXhKkdrCwjquZghd/qbA4ksxsWImjR7KEPERcaPndXEilzhDbKwuFvJiQX2duVgTGoq745YGhLZIjzo1i8tySkceCVd48P8WceYGz+F/bmY7r+m6fFNuxDSoGGSVeA4Lnjvmm8PFUP45YodDV9no4=" |
Paul Bakker | 05c3774 | 2014-05-02 16:19:04 +0200 | [diff] [blame] | 81 | |
| 82 | addons: |
Gilles Peskine | a5ced5b | 2020-04-25 23:36:00 +0200 | [diff] [blame] | 83 | apt: |
| 84 | packages: |
| 85 | - gnutls-bin |
Paul Bakker | 05c3774 | 2014-05-02 16:19:04 +0200 | [diff] [blame] | 86 | coverity_scan: |
| 87 | project: |
Paul Elliott | 211c69d | 2022-05-06 14:06:09 +0100 | [diff] [blame] | 88 | name: "ARMmbed/mbedtls" |
Vikas Katariya | 2bcf51a | 2019-09-10 17:36:23 +0100 | [diff] [blame] | 89 | notification_email: support-mbedtls@arm.com |
Paul Bakker | 05c3774 | 2014-05-02 16:19:04 +0200 | [diff] [blame] | 90 | build_command_prepend: |
Paul Bakker | 05c3774 | 2014-05-02 16:19:04 +0200 | [diff] [blame] | 91 | build_command: make |
Paul Bakker | db34e6d | 2015-04-14 14:59:47 +0200 | [diff] [blame] | 92 | branch_pattern: coverity_scan |