Skip to content

Commit

Permalink
Migrate from travis to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Feb 3, 2023
1 parent b6df23d commit 294b98d
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 39 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/coverity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Coverity

on:
push:
branches:
- coverity_scan

env:
PKG_CONFIG_PATH: $HOME/otr/usr/lib/pkgconfig/
LD_LIBRARY_PATH: $HOME/otr/usr/lib/

jobs:
coverity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get -y install \
libevent-dev \
libpurple-dev \
check \
libpam0g-dev \
libldap2-dev \
fakeroot \
debhelper \
devscripts \
libotr5-dev \
libgnutls28-dev
if: "matrix.os == 'ubuntu-latest'"
- name: Configure
run: ./configure --otr=1 --debug=1 --pam=1 --ldap=1
- uses: vapier/coverity-scan-action@v1
with:
email: dx@dxzone.com.ar
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
command: make
36 changes: 36 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
- push
- pull_request

env:
PKG_CONFIG_PATH: $HOME/otr/usr/lib/pkgconfig/
LD_LIBRARY_PATH: $HOME/otr/usr/lib/

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get -y install \
libevent-dev \
libpurple-dev \
check \
libpam0g-dev \
libldap2-dev \
fakeroot \
debhelper \
devscripts \
libotr5-dev \
libgnutls28-dev \
libjsonparser-dev
- name: Configure
run: ./configure --pam=1 --ldap=1
- name: Run testsuite
run: make check
- name: Build debian package
run: dpkg-buildpackage -uc -us -b
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

0 comments on commit 294b98d

Please sign in to comment.