mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-27 06:54:15 +01:00
ci: start porting tests to github actions
This commit is contained in:
parent
3b3d341a06
commit
9a80643a8e
34
.github/workflows/build_and_test.yml
vendored
Normal file
34
.github/workflows/build_and_test.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Build and Test
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
cc: gcc-10
|
||||||
|
config_args: "--without-mysql"
|
||||||
|
extra: "libldap2-dev libykpers-1-dev libnet-ldap-server-perl"
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
cc: gcc-10
|
||||||
|
config_args: "--without-ldap --without-mysql"
|
||||||
|
extra: "libykpers-1-dev"
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
cc: gcc-10
|
||||||
|
config_args: "--without-cr --without-mysql"
|
||||||
|
extra: "libldap2-dev libnet-ldap-server-perl"
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
cc: gcc-10
|
||||||
|
config_args: "--without-ldap --without-cr --without-mysql"
|
||||||
|
extra: ""
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Build and test
|
||||||
|
env:
|
||||||
|
CC: ${{ matrix.cc }}
|
||||||
|
CONFIGURE_ARGS: ${{ matrix.config_args }}
|
||||||
|
EXTRA: ${{ matrix.extra }}
|
||||||
|
run: |
|
||||||
|
tests/aux/build-and-test.sh
|
19
.travis.yml
19
.travis.yml
@ -1,19 +0,0 @@
|
|||||||
language: c
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- osx
|
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
- clang
|
|
||||||
env:
|
|
||||||
- CONFIGURE_ARGS="" EXTRA="libldap2-dev libykpers-1-dev libnet-ldap-server-perl libmysqlclient-dev"
|
|
||||||
- CONFIGURE_ARGS="--without-ldap" EXTRA="libykpers-1-dev libmysqlclient-dev"
|
|
||||||
- CONFIGURE_ARGS="--without-cr" EXTRA="libldap2-dev libnet-ldap-server-perl libmysqlclient-dev"
|
|
||||||
- CONFIGURE_ARGS="--without-ldap --without-cr" EXTRA="libmysqlclient-dev"
|
|
||||||
script: tests/aux/build-and-test.sh
|
|
||||||
jobs:
|
|
||||||
install: travis_wait 30 mvn install
|
|
||||||
include:
|
|
||||||
- compiler: gcc
|
|
||||||
os: linux
|
|
||||||
env: COVERAGE="--enable-coverage" EXTRA="libldap2-dev libykpers-1-dev libnet-ldap-server-perl lcov libmysqlclient-dev"
|
|
Loading…
x
Reference in New Issue
Block a user