Skip to content

Commit

Permalink
Merge pull request #652 from bersace/ci
Browse files Browse the repository at this point in the history
CI review
  • Loading branch information
bersace authored May 23, 2024
2 parents 941874c + 8828c2b commit 1d58ae8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
29 changes: 12 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,23 @@ workflows:
name: "stage0-build"
- lint:
name: "stage0-lint"
- func:
name: "stage1-func-rockylinux8-pg16"
dist: rockylinux8
- e2e:
name: "stage1-e2e-rockylinux9-pg16"
dist: rockylinux9
requires: [stage0-build]
pgversion: "16"
- func:
name: "stage1-func-rockylinux8-pg15"
- e2e:
name: "stage1-e2e-rockylinux8-pg14"
dist: rockylinux8
requires: [stage0-build]
pgversion: "15"
- func:
name: "stage1-func-rockylinux9-pg15"
dist: rockylinux9
requires: [stage0-build]
pgversion: "15"
- func:
name: "stage1-func-centos7-pg12"
- e2e:
name: "stage1-e2e-centos7-pg11"
dist: centos7
requires: [stage0-build]
pgversion: "12"
- func:
name: "stage1-func-centos6-pg9.5"
- e2e:
name: "stage1-e2e-centos6-pg9.5"
dist: centos6
requires: [stage0-build]
pgversion: "9.5"
Expand All @@ -55,7 +50,7 @@ jobs:
- restore_cache:
keys: [go-build]
- run:
name: Build ldap2pg binary
name: Build ldap2pg binary snapshot
command: |
goreleaser build --clean --snapshot --single-target
- run:
Expand Down Expand Up @@ -95,7 +90,7 @@ jobs:
- /root/.cache/go-build
- /go/pkg/mod

func:
e2e:
parameters:
dist:
description: "Distribution."
Expand All @@ -112,7 +107,7 @@ jobs:
- attach_workspace:
at: /home/circleci/workspace
- run:
name: Run tests
name: Run Docker Compose
environment:
PGVERSION: "<< parameters.pgversion >>"
DIST: "<< parameters.dist >>"
Expand Down
2 changes: 1 addition & 1 deletion test/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ psql -tc "SELECT version();"
# ldap-utils on CentOS does not read properly current ldaprc. Linking it in ~
# workaround this.
ln -fsv "${PWD}/ldaprc" ~/ldaprc
retry ldapsearch -x -v -w "${LDAPPASSWORD}" -z none
retry ldapsearch -x -v -w "${LDAPPASSWORD}" -z none >/dev/null

"$python" -m pytest test/ "$@"

0 comments on commit 1d58ae8

Please sign in to comment.