verilator/.travis.yml

284 lines
6.8 KiB
YAML
Raw Normal View History

2019-06-27 15:26:25 +00:00
# DESCRIPTION: Travis-CI config
#
# Copyright 2003-2020 by Wilson Snyder. This program is free software; you
# can redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
2019-06-27 15:26:25 +00:00
2019-11-14 22:54:57 +00:00
version: ~> 1.0
2019-07-18 09:31:02 +00:00
2019-11-14 22:54:57 +00:00
os: linux
language: cpp
cache: ccache
env:
global:
- VERILATOR_CACHE=$HOME/verilator_cache
- VERILATOR_ROOT=$PWD
2019-11-14 22:54:57 +00:00
- VERILATOR_NUM_JOBS=$(echo `nproc` + 1 | bc)
- VERILATOR_CONFIG_FLAGS="--enable-maintainer-mode --enable-longtests"
- VERILATOR_AUTHOR_SITE=1
cache:
directories:
- $VERILATOR_CACHE
before_install:
# Perl modules needed for testing
# Not listing Bit::Vector as slow to install, and only skips one test
2020-04-05 00:48:03 +00:00
- touch temp.cpp ; g++ -E -dM -c temp.cpp | sort ; rm -rf temp.cpp
- yes yes | sudo cpan -fi Unix::Processors Parallel::Forker
- sudo apt-get install gdb gtkwave lcov
- sudo apt-get install libfl-dev || true
- sudo apt-get install libgoogle-perftools-dev
2020-05-28 22:52:03 +00:00
# Only works on 20.04
- sudo apt-get install libsystemc-dev || true
before_script:
2019-12-09 10:55:18 +00:00
- bash -x ci/build_vcddiff.sh
- bash -x ci/build_verilator.sh
2020-05-28 22:52:03 +00:00
- bin/verilator -V || true
after_script:
- ccache -s
stages:
2020-05-20 21:39:32 +00:00
- vbuild
- test
jobs:
# compiler: gcc clang
# 12.04 dist: precise perl problem
# 14.04 dist: trusty cron
# 16.04 dist: xenial cron cron
# 18.04 dist: bionic cron
# 20.04 dist: focal !cron cron
2020-05-16 18:59:30 +00:00
# 20.04 coverage cron
2019-07-18 09:31:02 +00:00
include:
- if: type != cron
2020-05-20 21:39:32 +00:00
stage: vbuild
name: "Build Verilator"
dist: focal
compiler: gcc
script: echo "Done building Verilator"
2019-07-18 09:31:02 +00:00
# Non-cron build will just run on whatever linux flavor we get
- if: type != cron
stage: test
2020-05-20 21:39:32 +00:00
name: "Test Dist"
dist: focal
2019-07-18 09:31:02 +00:00
compiler: gcc
script: ci/test.sh dist
2019-07-18 09:31:02 +00:00
- if: type != cron
stage: test
2020-05-20 21:39:32 +00:00
name: "Test Vlt"
dist: focal
2019-07-18 09:31:02 +00:00
compiler: gcc
script: ci/test.sh vlt
2019-07-18 09:31:02 +00:00
- if: type != cron
stage: test
2020-05-20 21:39:32 +00:00
name: "Test Vltmt set 0"
dist: focal
2019-07-18 09:31:02 +00:00
compiler: gcc
script: ci/test.sh vltmt0
- if: type != cron
stage: test
2020-05-20 21:39:32 +00:00
name: "Test Vltmt set 1"
dist: focal
compiler: gcc
script: ci/test.sh vltmt1
2019-07-18 09:31:02 +00:00
# Cron builds try different OS/compiler combinations
- if: type = cron
dist: trusty
2019-07-18 09:31:02 +00:00
compiler: gcc
2020-05-20 21:39:32 +00:00
stage: vbuild
2020-05-17 12:48:31 +00:00
name: "14.04 gcc build"
script: echo
- if: type = cron
dist: trusty
compiler: gcc
stage: test
2020-05-18 22:34:26 +00:00
name: "14.04 gcc distvlt"
script: ci/test.sh distvlt
- if: type = cron
dist: trusty
compiler: gcc
stage: test
2020-05-22 12:39:56 +00:00
name: "14.04 gcc vltmt0"
script: ci/test.sh vltmt0
- if: type = cron
dist: trusty
compiler: gcc
stage: test
name: "14.04 gcc vltmt1"
script: ci/test.sh vltmt1
2020-05-18 22:34:26 +00:00
#
2019-07-18 09:31:02 +00:00
- if: type = cron
2019-11-14 22:54:57 +00:00
dist: xenial
2019-07-18 09:31:02 +00:00
compiler: gcc
2020-05-20 21:39:32 +00:00
stage: vbuild
2020-05-17 12:48:31 +00:00
name: "16.04 gcc build"
script: echo
- if: type = cron
dist: xenial
compiler: gcc
stage: test
2020-05-18 22:34:26 +00:00
name: "16.04 gcc distvlt"
script: ci/test.sh distvlt
- if: type = cron
dist: xenial
compiler: gcc
stage: test
2020-05-22 12:39:56 +00:00
name: "16.04 gcc vltmt0"
script: ci/test.sh vltmt0
- if: type = cron
dist: xenial
compiler: gcc
stage: test
name: "16.04 gcc vltmt1"
script: ci/test.sh vltmt1
2020-05-18 22:34:26 +00:00
#
2019-07-18 09:31:02 +00:00
- if: type = cron
dist: bionic
2019-07-18 09:31:02 +00:00
compiler: gcc
2020-05-20 21:39:32 +00:00
stage: vbuild
2020-05-17 12:48:31 +00:00
name: "18.04 gcc build"
script: echo
- if: type = cron
dist: bionic
compiler: gcc
stage: test
2020-05-18 22:34:26 +00:00
name: "18.04 gcc distvlt"
script: ci/test.sh distvlt
- if: type = cron
dist: bionic
compiler: gcc
stage: test
2020-05-22 12:39:56 +00:00
name: "18.04 gcc vltmt0"
script: ci/test.sh vltmt0
- if: type = cron
dist: bionic
compiler: gcc
stage: test
name: "18.04 gcc vltmt1"
script: ci/test.sh vltmt1
2020-05-18 22:34:26 +00:00
#
2019-07-18 09:31:02 +00:00
- if: type = cron
2019-11-14 22:54:57 +00:00
dist: xenial
2019-07-18 09:31:02 +00:00
compiler: clang
2020-05-20 21:39:32 +00:00
stage: vbuild
2020-05-17 12:48:31 +00:00
name: "16.04 clang build"
script: echo
- if: type = cron
dist: xenial
compiler: clang
stage: test
2020-05-18 22:34:26 +00:00
name: "16.04 clang distvlt"
script: ci/test.sh distvlt
- if: type = cron
dist: xenial
compiler: clang
stage: test
2020-05-22 12:39:56 +00:00
name: "16.04 clang vltmt0"
script: ci/test.sh vltmt0
- if: type = cron
dist: xenial
compiler: clang
stage: test
name: "16.04 clang vltmt1"
script: ci/test.sh vltmt1
2020-05-18 22:34:26 +00:00
#
2019-07-18 09:31:02 +00:00
- if: type = cron
dist: focal
2019-07-18 09:31:02 +00:00
compiler: clang
2020-05-20 21:39:32 +00:00
stage: vbuild
2020-05-17 12:48:31 +00:00
name: "20.04 clang build"
script: echo
- if: type = cron
dist: focal
compiler: clang
stage: test
2020-05-18 22:34:26 +00:00
name: "20.04 clang distvlt"
script: ci/test.sh distvlt
- if: type = cron
dist: focal
compiler: clang
stage: test
2020-05-22 12:39:56 +00:00
name: "20.04 clang vltmt0"
script: ci/test.sh vltmt0
- if: type = cron
dist: focal
compiler: clang
stage: test
name: "20.04 clang vltmt1"
script: ci/test.sh vltmt1
2020-05-18 22:34:26 +00:00
#
2020-05-17 12:19:42 +00:00
# Cron coverage runs (two parts to avoid 50min timeout)
2020-05-16 18:59:30 +00:00
- if: type = cron
dist: focal
compiler: gcc
2020-05-20 21:39:32 +00:00
stage: vbuild
name: "Coverage Build"
2020-05-18 22:34:26 +00:00
script: ci/test.sh coverage-build
- if: type = cron
dist: focal
compiler: gcc
2020-05-20 21:39:32 +00:00
stage: test
name: "Coverage dist"
2020-05-18 22:34:26 +00:00
script: ci/test.sh coverage-dist
- if: type = cron
dist: focal
compiler: gcc
2020-05-20 21:39:32 +00:00
stage: test
name: "Coverage vlt set 0"
script: ci/test.sh coverage-vlt0
- if: type = cron
dist: focal
compiler: gcc
stage: test
name: "Coverage vltmt set 0"
script: ci/test.sh coverage-vltmt0
2020-05-17 12:19:42 +00:00
- if: type = cron
dist: focal
compiler: gcc
2020-05-20 21:39:32 +00:00
stage: test
name: "Coverage vlt set 1"
script: ci/test.sh coverage-vlt1
- if: type = cron
dist: focal
compiler: gcc
stage: test
name: "Coverage vltmt set 1"
script: ci/test.sh coverage-vltmt1
2020-05-22 12:39:56 +00:00
- if: type = cron
dist: focal
compiler: gcc
stage: test
name: "Coverage vlt set 2"
script: ci/test.sh coverage-vlt2
2020-05-24 12:30:59 +00:00
- if: type = cron
dist: focal
compiler: gcc
stage: test
name: "Coverage vltmt set 2"
script: ci/test.sh coverage-vltmt2
2020-05-22 12:39:56 +00:00
- if: type = cron
dist: focal
compiler: gcc
stage: test
name: "Coverage vlt set 3"
script: ci/test.sh coverage-vlt3
2020-05-24 12:30:59 +00:00
- if: type = cron
dist: focal
compiler: gcc
stage: test
name: "Coverage vltmt set 3"
script: ci/test.sh coverage-vltmt3
2019-11-14 22:54:57 +00:00
notifications:
email:
if: repo = verilator/verilator
recipients:
2019-12-02 13:18:15 +00:00
- wsnyder@wsnyder.org
2019-11-14 22:54:57 +00:00
- todd.strader@gmail.com