diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2023-06-20 08:13:25 +0200 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2023-06-20 08:23:28 +0200 |
commit | 38f9646a1ba01423b1453d5b8fbb50c873a0d5fa (patch) | |
tree | 4169d44280560c74a8536cae5c2cb37d64081deb | |
parent | b1a8f65298302cecdaf41745429c10e48842e87a (diff) | |
download | mod_authnz_pam-38f9646a1ba01423b1453d5b8fbb50c873a0d5fa.tar.gz mod_authnz_pam-38f9646a1ba01423b1453d5b8fbb50c873a0d5fa.tar.xz mod_authnz_pam-38f9646a1ba01423b1453d5b8fbb50c873a0d5fa.zip |
Add testing with CircleCI.
-rw-r--r-- | .circleci/config.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..eaa72ce --- /dev/null +++ b/.circleci/config.yml @@ -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' |