Skip to content

Commit

Permalink
Add testing with CircleCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelton committed Jun 20, 2023
1 parent b1a8f65 commit 38f9646
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2.1
jobs:
arm-container:
parameters:
os:
type: string
machine:
image: ubuntu-2004:current
resource_class: arm.medium
steps:
- checkout
- run:
name: Set the right OS in the Dockerfile
command: sed -i "s#^FROM.*#FROM << parameters.os >>#" tests/Dockerfile
- run:
name: Build image
command: docker build -t mod_authnz_pam -f tests/Dockerfile .
- run:
name: Run container
command: docker run --name mod_authnz_pam --rm -d mod_authnz_pam
- run:
name: Run tests in the container
command: docker exec mod_authnz_pam tests/run.sh
workflows:
workflow:
jobs:
- arm-container:
matrix:
parameters:
os:
- 'registry.fedoraproject.org/fedora:latest'
- 'quay.io/centos/centos:stream9'

0 comments on commit 38f9646

Please sign in to comment.