From b9d0fd60e4e1be230a13b7ae7b9945d93ad90bd9 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 21 Apr 2020 22:18:58 +0200 Subject: [PATCH] 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 --- .travis.yml | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3cc09473..39d42636e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,24 +2,36 @@ language: c compiler: gcc sudo: false cache: ccache -script: -- tests/scripts/recursion.pl library/*.c -- tests/scripts/check-generated-files.sh -- tests/scripts/check-doxy-blocks.pl -- tests/scripts/check-names.sh -- tests/scripts/check-files.py -- tests/scripts/doxygen.sh -- cmake -D CMAKE_BUILD_TYPE:String="Check" . -- make -- make test -- programs/test/selftest -- OSSL_NO_DTLS=1 tests/compat.sh -- tests/ssl-opt.sh -e '\(DTLS\|SCSV\).*openssl' -- tests/scripts/test-ref-configs.pl -- tests/scripts/curves.pl -- tests/scripts/key-exchanges.pl + +jobs: + include: + - name: basic checks + script: + - tests/scripts/recursion.pl library/*.c + - tests/scripts/check-generated-files.sh + - tests/scripts/check-doxy-blocks.pl + - tests/scripts/check-names.sh + - tests/scripts/check-files.py + - tests/scripts/doxygen.sh + + - name: default configuration + script: + - cmake -D CMAKE_BUILD_TYPE:String="Check" . + - 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: - tests/scripts/travis-log-failure.sh + env: global: - SEED=1