ci: run spec tests against all pg versions, even if one of them fails (#1628)

- when the build fails no tests are run(circleci-agent step halt)
- when the build succeeds all tests are run, even if some of them fail(when: always)
This commit is contained in:
Wolfgang Walther
2020-10-16 11:15:20 -05:00
committed by GitHub
parent 5f33f01094
commit 780970885e
+12
View File
@@ -183,30 +183,42 @@ jobs:
- run:
name: Install testing scripts
command: nix-env -f default.nix -iA tests tests.ioTests tests.memoryTests
- run:
name: Skip tests on build failure
command: circleci-agent step halt
when: on_fail
- run:
name: Run the spec tests against PostgreSQL 9.5
command: postgrest-test-spec-postgresql-9.5
when: always
- run:
name: Run the spec tests against PostgreSQL 9.6
command: postgrest-test-spec-postgresql-9.6
when: always
- run:
name: Run the spec tests against PostgreSQL 10
command: postgrest-test-spec-postgresql-10
when: always
- run:
name: Run the spec tests against PostgreSQL 11
command: postgrest-test-spec-postgresql-11
when: always
- run:
name: Run the spec tests against PostgreSQL 12
command: postgrest-test-spec-postgresql-12
when: always
- run:
name: Run the spec tests against PostgreSQL 13
command: postgrest-test-spec-postgresql-13
when: always
- run:
name: Run io tests
command: postgrest-test-io
when: always
- run:
name: Run memory tests
command: postgrest-test-memory
when: always
workflows:
version: 2