Travis: Fix cron.

This commit is contained in:
Wilson Snyder 2020-05-17 08:19:42 -04:00
parent 212aa332dd
commit d5fc0fca41
3 changed files with 19 additions and 7 deletions

View File

@ -113,13 +113,19 @@ jobs:
stage: "Build Verilator"
name: "20.04 clang build+test"
script: ci/test.sh all
# Cron coverage runs
# Cron coverage runs (two parts to avoid 50min timeout)
- if: type = cron
dist: focal
compiler: gcc
stage: "Build Verilator"
stage: "Coverage Build Verilator"
name: "Coverage"
script: ci/test.sh coverage
script: ci/test.sh coverage1
- if: type = cron
dist: focal
compiler: gcc
stage: "Coverage Test Verilator"
name: "Coverage"
script: ci/test.sh coverage2
notifications:
email:

View File

@ -12,9 +12,8 @@ set -e
export DRIVER_FLAGS='-j 0 --quiet --rerun'
case $1 in
coverage)
nodist/code_coverage
bash <(curl -s https://codecov.io/bash) -f nodist/obj_dir/coverage/app_total.info
all)
make -C test_regress
;;
dist)
make -C test_regress SCENARIOS=--dist
@ -31,6 +30,13 @@ case $1 in
vltmt1)
make -C test_regress SCENARIOS=--vltmt DRIVER_HASHSET=--hashset=1/2
;;
coverage1)
nodist/code_coverage --stages 1-2
;;
coverage2)
nodist/code_coverage
bash <(curl -s https://codecov.io/bash) -f nodist/obj_dir/coverage/app_total.info
;;
*)
echo "Usage: test.sh (dist|vlt|vltmt)"
exit -1

View File

@ -91,7 +91,7 @@ sub test {
if ($Opt_Stages{3}) {
travis_fold_start("test");
print "Stage 3: make examples (with coverage on)\n";
print "Stage 3: make tests (with coverage on)\n";
run("make examples");
run("make test_regress"
. ($Opt_Stop ? '' : ' || true'));