Skip to content

Commit 388fa47

Browse files
committed
Tests: CI through github instead of Travis
1 parent c854ce2 commit 388fa47

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# DESCRIPTION: Github actions config
2+
name: build
3+
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
- cron: '0 0 * * 0' # weekly
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
# This uses the ":stable" version of Verilator, you may prefer ":latest"
18+
# We run make from inside the container, overriding default entry point (Verilator binary itself)
19+
# You may prefer to build install Verilator from git locally (slower but avoids docker)
20+
- name: Verilate
21+
run: docker run -v ${PWD}:/work --user $(id -u):$(id -g) -e CCACHE_DIR=/work/.ccache --entrypoint make verilator/verilator:stable
22+
23+
24+
- name: Publish
25+
run: bash <(curl -s https://codecov.io/bash)

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
# SystemVerilog Verilator Codecov Tutorial
22

3-
[![Travis CI logo](TravisCI.png)](https://travis-ci.org)
4-
![Whitespace](Whitespace.png)
53
[![Codecov logo](Codecov.png)](https://www.codecov.io)
64
![Whitespace](Whitespace.png)
75
[![Verilator logo](verilator_56x48-min.png)](https://verilator.org)
86

9-
[![Build Status](https://travis-ci.org/verilator/example-systemverilog.svg?branch=master)](https://travis-ci.org/verilator/example-systemverilog)
7+
[![Build Status](https://github.com/verilator/example-systemverilog/workflows/build/badge.svg)](https://github.com/verilator/example-systemverilog-mode/actions?query=workflow%3Abuild)
8+
109
[![codecov.io](https://codecov.io/github/verilator/example-systemverilog/coverage.svg?branch=master)](https://codecov.io/github/verilator/example-systemverilog?branch=master)
1110

1211
This GitHub is part of [the SystemVerilog Verilator Codecov Tutorial](https://github.com/verilator/example-systemverilog).
1312

1413
The goal of this project is to demonstrate a SystemVerilog project with:
1514
* Verilator
1615
* C++ compiler: `g++`
17-
* Travis-CI running Docker
16+
* GitHub actions CI running Docker
1817
* Code coverage with `verilator_coverage` (note: it should show the code coverage is below 100%)
1918
* Code coverage published in CodeCov.
2019

0 commit comments

Comments
 (0)