Skip to content

Commit

Permalink
Use Github actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
usommerl committed Dec 25, 2020
1 parent c19d4b5 commit c4797d9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 31 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Setup bats
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1

- name: Setup kcov
run: |-
sudo apt install libcurl4-openssl-dev libelf-dev libdw-dev cmake &&
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
cd kcov-master &&
mkdir build &&
cd build &&
cmake .. &&
make &&
sudo make install &&
cd ../.. &&
rm -rf kcov-master
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Test with coverage
run: |-
mkdir -p coverage &&
kcov coverage bats test &&
bash <(curl -s https://codecov.io/bash)
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit c4797d9

Please sign in to comment.