blob: c67c0cd33ccc91a094b95022f0941dc2e2f59ae0 [file] [log] [blame]
Paul Bakker3ad3aa32014-04-17 16:16:05 +02001language: c
Gilles Peskinec9cdd212020-04-21 22:13:43 +02002compiler: gcc
Manuel Pégourié-Gonnardc84d7fb2015-08-04 15:59:34 +02003sudo: false
Manuel Pégourié-Gonnard2c998002015-08-04 18:06:02 +02004cache: ccache
Simon Butcher3459c742018-11-22 10:14:03 +00005
Gilles Peskined0f543a2020-04-21 22:18:58 +02006jobs:
7 include:
Gilles Peskine10cb1602020-04-26 21:26:42 +02008 - name: basic checks and reference configurations
Gilles Peskineb49a4572020-04-23 23:45:55 +02009 addons:
10 apt:
11 packages:
Gilles Peskinea5ced5b2020-04-25 23:36:00 +020012 - gnutls-bin
Gilles Peskineb49a4572020-04-23 23:45:55 +020013 - doxygen
14 - graphviz
Gilles Peskinef2f39dd2020-04-25 22:30:31 +020015 - gcc-arm-none-eabi
16 - libnewlib-arm-none-eabi
Gilles Peskinea38f3682020-04-25 21:15:07 +020017 language: python # Needed to get pip for Python 3
18 python: 3.5 # version from Ubuntu 16.04
19 install:
20 - pip install pylint==2.4.4
Gilles Peskined0f543a2020-04-21 22:18:58 +020021 script:
Gilles Peskine3c7ffd72020-04-21 22:23:35 +020022 - tests/scripts/all.sh -k 'check_*'
Gilles Peskinea2d3ec22020-04-25 21:31:04 +020023 - tests/scripts/all.sh -k test_default_out_of_box
Gilles Peskine10cb1602020-04-26 21:26:42 +020024 - tests/scripts/test-ref-configs.pl
Gilles Peskine907211d2020-04-30 23:10:48 +020025 - tests/scripts/all.sh -k build_arm_none_eabi_gcc_arm5vte build_arm_none_eabi_gcc_m0plus
Gilles Peskined0f543a2020-04-21 22:18:58 +020026
Gilles Peskinea2d3ec22020-04-25 21:31:04 +020027 - name: full configuration
Gilles Peskined0f543a2020-04-21 22:18:58 +020028 script:
Gilles Peskinea2d3ec22020-04-25 21:31:04 +020029 - tests/scripts/all.sh -k test_full_cmake_gcc_asan
Gilles Peskined0f543a2020-04-21 22:18:58 +020030
Gilles Peskine10cb1602020-04-26 21:26:42 +020031 - name: check compilation guards
Gilles Peskined0f543a2020-04-21 22:18:58 +020032 script:
Gilles Peskine5dcfb942020-04-25 21:46:42 +020033 - tests/scripts/all.sh -k 'test_depends_*' 'build_key_exchanges'
Gilles Peskined0f543a2020-04-21 22:18:58 +020034
Gilles Peskine129d0412020-04-25 22:42:41 +020035 - name: macOS
36 os: osx
37 compiler: clang
38 script:
39 - tests/scripts/all.sh -k test_default_out_of_box
40
Gilles Peskine04025102020-04-25 23:25:10 +020041 - name: Windows
42 os: windows
Gilles Peskineb97a0442020-04-26 14:09:09 +020043 before_install:
44 - choco install python --version=3.5.4
45 env:
46 # Add the directory where the Choco package goes
47 - PATH=/c/Python35:/c/Python35/Scripts:$PATH
Gilles Peskine04025102020-04-25 23:25:10 +020048 script:
Gilles Peskineb97a0442020-04-26 14:09:09 +020049 - type python; python --version
50 - python scripts/generate_psa_constants.py
51 # Logs appear out of sequence on Windows. Give time to catch up.
52 - sleep 5
Gilles Peskine23d249a2020-04-26 13:12:55 +020053 - scripts/windows_msbuild.bat v141 # Visual Studio 2017
Gilles Peskine04025102020-04-25 23:25:10 +020054
Janos Follath831a65f2016-03-21 09:22:58 +000055after_failure:
Simon Butcher6eaf3652016-04-10 15:11:27 +010056- tests/scripts/travis-log-failure.sh
Gilles Peskined0f543a2020-04-21 22:18:58 +020057
Paul Bakker05c37742014-05-02 16:19:04 +020058env:
59 global:
Manuel Pégourié-Gonnardc8530df2019-02-27 10:46:56 +010060 - SEED=1
Vikas Katariya0eb2d9d2019-09-10 17:22:52 +010061 - secure: "FrI5d2s+ckckC17T66c8jm2jV6i2DkBPU5nyWzwbedjmEBeocREfQLd/x8yKpPzLDz7ghOvr+/GQvsPPn0dVkGlNzm3Q+hGHc/ujnASuUtGrcuMM+0ALnJ3k4rFr9xEvjJeWb4SmhJO5UCAZYvTItW4k7+bj9L+R6lt3TzQbXzg="
Paul Bakker05c37742014-05-02 16:19:04 +020062
63addons:
Gilles Peskinea5ced5b2020-04-25 23:36:00 +020064 apt:
65 packages:
66 - gnutls-bin
Paul Bakker05c37742014-05-02 16:19:04 +020067 coverity_scan:
68 project:
Paul Bakkerdb34e6d2015-04-14 14:59:47 +020069 name: "ARMmbed/mbedtls"
Vikas Katariya2bcf51a2019-09-10 17:36:23 +010070 notification_email: support-mbedtls@arm.com
Paul Bakker05c37742014-05-02 16:19:04 +020071 build_command_prepend:
Paul Bakker05c37742014-05-02 16:19:04 +020072 build_command: make
Paul Bakkerdb34e6d2015-04-14 14:59:47 +020073 branch_pattern: coverity_scan