Travis: split the build into three parallel jobs

Split the build between:
* Basic checks
* A build in the default configuration with extensive tests
* Builds in other configurations with less testing

The intent is to have one shorter job with basic tests, and two longer
jobs that take roughly the same amount of time (split as evenly as
possible while keeping an easy-to-understand separation).

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2020-04-21 22:18:58 +02:00
parent e021233cbc
commit b9d0fd60e4

View file

@ -2,24 +2,36 @@ language: c
compiler: gcc compiler: gcc
sudo: false sudo: false
cache: ccache cache: ccache
script:
- tests/scripts/recursion.pl library/*.c jobs:
- tests/scripts/check-generated-files.sh include:
- tests/scripts/check-doxy-blocks.pl - name: basic checks
- tests/scripts/check-names.sh script:
- tests/scripts/check-files.py - tests/scripts/recursion.pl library/*.c
- tests/scripts/doxygen.sh - tests/scripts/check-generated-files.sh
- cmake -D CMAKE_BUILD_TYPE:String="Check" . - tests/scripts/check-doxy-blocks.pl
- make - tests/scripts/check-names.sh
- make test - tests/scripts/check-files.py
- programs/test/selftest - tests/scripts/doxygen.sh
- OSSL_NO_DTLS=1 tests/compat.sh
- tests/ssl-opt.sh -e '\(DTLS\|SCSV\).*openssl' - name: default configuration
- tests/scripts/test-ref-configs.pl script:
- tests/scripts/curves.pl - cmake -D CMAKE_BUILD_TYPE:String="Check" .
- tests/scripts/key-exchanges.pl - make
- make test
- programs/test/selftest
- OSSL_NO_DTLS=1 tests/compat.sh
- tests/ssl-opt.sh -e '\(DTLS\|SCSV\).*openssl'
- name: enumerated configurations
script:
- tests/scripts/test-ref-configs.pl
- tests/scripts/curves.pl
- tests/scripts/key-exchanges.pl
after_failure: after_failure:
- tests/scripts/travis-log-failure.sh - tests/scripts/travis-log-failure.sh
env: env:
global: global:
- SEED=1 - SEED=1