summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 635bbd54a9afa72df7f86e416faa40255625af33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: generic
dist: bionic
sudo: required

services:
- docker

install: true

stages:
- build-and-test

matrix:
  include:
    - stage: build-and-test
      env: fedora=latest
    - stage: build-and-test
      env: centos=8
    - stage: build-and-test
      env: centos=centos7

before_script:
- if test -n "$fedora" ; then sed -i "s#^FROM.*#FROM registry.fedoraproject.org/fedora:$fedora#" tests/Dockerfile ; fi
- if test -n "$centos" ; then sed -i "s#^FROM.*#FROM centos:$centos#" tests/Dockerfile ; fi

script:
- docker build -t mod_authnz_pam -f tests/Dockerfile .
- docker run --name mod_authnz_pam --rm -d mod_authnz_pam
- docker exec mod_authnz_pam tests/run.sh