diff --git a/.travis.yml b/.travis.yml index ff73fb9b4..1f74b76eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,6 +49,7 @@ jobs: # 16.04 dist: xenial cron cron # 18.04 dist: bionic cron # 20.04 dist: focal !cron cron +# 20.04 coverage cron include: - if: type != cron stage: "Build Verilator" @@ -112,6 +113,13 @@ jobs: stage: "Build Verilator" name: "20.04 clang build+test" script: ci/test.sh all +# Cron coverage runs + - if: type = cron + dist: focal + compiler: gcc + stage: "Build Verilator" + name: "Coverage" + script: ci/test.sh coverage notifications: email: diff --git a/ci/test.sh b/ci/test.sh index fbac24b6c..d299d195c 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -12,6 +12,10 @@ 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 + ;; dist) make -C test_regress SCENARIOS=--dist ;;