Skip to content

Commit

Permalink
s/travis/gha/
Browse files Browse the repository at this point in the history
  • Loading branch information
thentenaar committed Jul 20, 2023
1 parent 32c4807 commit 5468abb
Show file tree
Hide file tree
Showing 14 changed files with 313 additions and 120 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,35 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
if: github.repository == 'thentenaar/mmm'
strategy:
matrix:
CC: [gcc, clang]
env:
CC: ${{ matrix.CC }}
runs-on: ubuntu-latest
name: linux-${{ matrix.CC }}
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
sudo apt install libpq-dev libmysqlclient-dev libsqlite3-dev libgit2-dev check gcovr
- name: Build
run: |
./configure
make coveralls
- uses: coverallsapp/github-action@v2
if: matrix.CC == 'gcc'
with:
format: coveralls
file: ${{ github.workspace }}/test/coveralls.json
compare-ref: master
github-token: ${{ secrets.GITHUB_TOKEN }}

22 changes: 22 additions & 0 deletions .github/workflows/coverity.yml
@@ -0,0 +1,22 @@
name: Coverity
on:
push:
branches:
- covscan
jobs:
coverity:
if: github.repository == 'thentenaar/mmm'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Pre-build
run: |
sudo apt install libpq-dev libmysqlclient-dev libsqlite3-dev libgit2-dev
./configure
- uses: vapier/coverity-scan-action@v1
with:
project: thentenaar/mmm
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
command: make

19 changes: 19 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,19 @@
name: Release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
tarball:
if: github.repository == 'thentenaar/mmm'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Source Tarball
run: tar -H posix --exclude-vcs-ignores --exclude=.\* -cf- mmm | xz -9 > mmm.tar.xz
- uses: softprops/action-gh-release@v1
with:
files: mmm.tar.xz

4 changes: 2 additions & 2 deletions .gitignore
@@ -1,10 +1,10 @@
Makefile
test/Makefile
test/test_runner
test_runner
config.log
config.status
autom4te.cache
configure~
*.o
*.sw?
*.gc[nd][oa]
mmm
15 changes: 0 additions & 15 deletions .travis-install.sh

This file was deleted.

50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

7 changes: 5 additions & 2 deletions Makefile.in
Expand Up @@ -94,7 +94,10 @@ check:
@$(MAKE) -C test check

coverage:
@COVERAGE=1 $(MAKE) -C test coverage
@COVERAGE=1 $(MAKE) -C test clean coverage

coveralls:
@COVERAGE=1 $(MAKE) -C test clean coveralls

indent:
ifneq (,$(INDENT))
Expand All @@ -109,5 +112,5 @@ endif
@$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<

.SUFFIXES: .c .o
.PHONY: all install uninstall clean check coverage indent
.PHONY: all install uninstall clean check coverage coveralls indent

4 changes: 2 additions & 2 deletions README.md
@@ -1,8 +1,8 @@
Minimal Migration Manager
=========================

[![Travis CI Status](https://secure.travis-ci.org/thentenaar/mmm.svg?branch=master)](https://travis-ci.org/thentenaar/mmm)
[![Coverage Status](https://coveralls.io/repos/thentenaar/mmm/badge.svg?branch=master)](https://coveralls.io/r/thentenaar/mmm)
[![CI Status](https://github.com/thentenaar/mmm/workflows/CI/badge.svg)](https://github.com/thentenaar/mmm/actions)
[![Coverage Status](https://coveralls.io/repos/github/thentenaar/mmm/badge.svg?branch=master)](https://coveralls.io/github/thentenaar/mmm?branch=master)
[![Coverity Status](https://scan.coverity.com/projects/5663/badge.svg)](https://scan.coverity.com/projects/5663)

Synopsis
Expand Down

0 comments on commit 5468abb

Please sign in to comment.