Travis: Fix cron.
This commit is contained in:
parent
212aa332dd
commit
d5fc0fca41
12
.travis.yml
12
.travis.yml
|
|
@ -113,13 +113,19 @@ jobs:
|
||||||
stage: "Build Verilator"
|
stage: "Build Verilator"
|
||||||
name: "20.04 clang build+test"
|
name: "20.04 clang build+test"
|
||||||
script: ci/test.sh all
|
script: ci/test.sh all
|
||||||
# Cron coverage runs
|
# Cron coverage runs (two parts to avoid 50min timeout)
|
||||||
- if: type = cron
|
- if: type = cron
|
||||||
dist: focal
|
dist: focal
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
stage: "Build Verilator"
|
stage: "Coverage Build Verilator"
|
||||||
name: "Coverage"
|
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:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|
|
||||||
12
ci/test.sh
12
ci/test.sh
|
|
@ -12,9 +12,8 @@ set -e
|
||||||
export DRIVER_FLAGS='-j 0 --quiet --rerun'
|
export DRIVER_FLAGS='-j 0 --quiet --rerun'
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
coverage)
|
all)
|
||||||
nodist/code_coverage
|
make -C test_regress
|
||||||
bash <(curl -s https://codecov.io/bash) -f nodist/obj_dir/coverage/app_total.info
|
|
||||||
;;
|
;;
|
||||||
dist)
|
dist)
|
||||||
make -C test_regress SCENARIOS=--dist
|
make -C test_regress SCENARIOS=--dist
|
||||||
|
|
@ -31,6 +30,13 @@ case $1 in
|
||||||
vltmt1)
|
vltmt1)
|
||||||
make -C test_regress SCENARIOS=--vltmt DRIVER_HASHSET=--hashset=1/2
|
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)"
|
echo "Usage: test.sh (dist|vlt|vltmt)"
|
||||||
exit -1
|
exit -1
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ sub test {
|
||||||
|
|
||||||
if ($Opt_Stages{3}) {
|
if ($Opt_Stages{3}) {
|
||||||
travis_fold_start("test");
|
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 examples");
|
||||||
run("make test_regress"
|
run("make test_regress"
|
||||||
. ($Opt_Stop ? '' : ' || true'));
|
. ($Opt_Stop ? '' : ' || true'));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue