1# Declare python as our language. This way we get our chosen Python version, 2# and pip is available. Gcc and clang are available anyway. 3language: python 4python: 3.5 5sudo: false 6cache: ccache 7 8jobs: 9 include: 10 - name: basic checks and reference configurations 11 addons: 12 apt: 13 packages: 14 - gnutls-bin 15 - doxygen 16 - graphviz 17 - gcc-arm-none-eabi 18 - libnewlib-arm-none-eabi 19 - gcc-arm-linux-gnueabi 20 - libc6-dev-armel-cross 21 script: 22 - tests/scripts/all.sh -k 'check_*' 23 - tests/scripts/all.sh -k test_default_out_of_box 24 - tests/scripts/all.sh -k test_ref_configs 25 - tests/scripts/all.sh -k build_arm_linux_gnueabi_gcc_arm5vte build_arm_none_eabi_gcc_m0plus 26 27 - name: full configuration 28 os: linux 29 dist: focal 30 addons: 31 apt: 32 packages: 33 - clang-10 34 - gnutls-bin 35 script: 36 # Do a manual build+test sequence rather than using all.sh, 37 # because there's no all.sh component that does what we want, 38 # which is a build with Clang >= 10 and ASan, running all the SSL 39 # testing. 40 # - The clang executable in the default PATH is Clang 7 on 41 # Travis's focal instances, but we want Clang >= 10. 42 # - Running all the SSL testing requires a specific set of 43 # OpenSSL and GnuTLS versions and we don't want to bother 44 # with those on Travis. 45 # So we explicitly select clang-10 as the compiler, and we 46 # have ad hoc restrictions on SSL testing based on what is 47 # passing at the time of writing. We will remove these limitations 48 # gradually. 49 - make generated_files 50 - 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' 51 - make test 52 - programs/test/selftest 53 - tests/scripts/test_psa_constant_names.py 54 - tests/ssl-opt.sh 55 # Modern OpenSSL does not support fixed ECDH or null ciphers. 56 - tests/compat.sh -p OpenSSL -e 'NULL\|ECDH-' 57 - tests/scripts/travis-log-failure.sh 58 # GnuTLS supports CAMELLIA but compat.sh doesn't properly enable it. 59 - tests/compat.sh -p GnuTLS -e 'CAMELLIA' 60 - tests/scripts/travis-log-failure.sh 61 - tests/context-info.sh 62 63 - name: Windows 64 os: windows 65 # The language 'python' is currently unsupported on the 66 # Windows Build Environment. And 'generic' causes the job to get stuck 67 # on "Booting virtual machine". 68 language: c 69 before_install: 70 - choco install python --version=3.5.4 71 env: 72 # Add the directory where the Choco packages go 73 - PATH=/c/Python35:/c/Python35/Scripts:$PATH 74 - PYTHON=python.exe 75 script: 76 - type perl; perl --version 77 - type python; python --version 78 - scripts/make_generated_files.bat 79 # Logs appear out of sequence on Windows. Give time to catch up. 80 - sleep 5 81 - scripts/windows_msbuild.bat v141 # Visual Studio 2017 82 83after_failure: 84- tests/scripts/travis-log-failure.sh 85 86env: 87 global: 88 - SEED=1 89 - secure: "JECCru6HASpKZ0OLfHh8f/KXhKkdrCwjquZghd/qbA4ksxsWImjR7KEPERcaPndXEilzhDbKwuFvJiQX2duVgTGoq745YGhLZIjzo1i8tySkceCVd48P8WceYGz+F/bmY7r+m6fFNuxDSoGGSVeA4Lnjvmm8PFUP45YodDV9no4=" 90 91install: 92 - $PYTHON scripts/min_requirements.py 93 94addons: 95 apt: 96 packages: 97 - gnutls-bin 98 coverity_scan: 99 project: 100 name: "ARMmbed/mbedtls" 101 notification_email: support-mbedtls@arm.com 102 build_command_prepend: 103 build_command: make 104 branch_pattern: coverity_scan 105