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:
@@ -183,30 +183,42 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Install testing scripts
|
name: Install testing scripts
|
||||||
command: nix-env -f default.nix -iA tests tests.ioTests tests.memoryTests
|
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:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 9.5
|
name: Run the spec tests against PostgreSQL 9.5
|
||||||
command: postgrest-test-spec-postgresql-9.5
|
command: postgrest-test-spec-postgresql-9.5
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 9.6
|
name: Run the spec tests against PostgreSQL 9.6
|
||||||
command: postgrest-test-spec-postgresql-9.6
|
command: postgrest-test-spec-postgresql-9.6
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 10
|
name: Run the spec tests against PostgreSQL 10
|
||||||
command: postgrest-test-spec-postgresql-10
|
command: postgrest-test-spec-postgresql-10
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 11
|
name: Run the spec tests against PostgreSQL 11
|
||||||
command: postgrest-test-spec-postgresql-11
|
command: postgrest-test-spec-postgresql-11
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 12
|
name: Run the spec tests against PostgreSQL 12
|
||||||
command: postgrest-test-spec-postgresql-12
|
command: postgrest-test-spec-postgresql-12
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 13
|
name: Run the spec tests against PostgreSQL 13
|
||||||
command: postgrest-test-spec-postgresql-13
|
command: postgrest-test-spec-postgresql-13
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run io tests
|
name: Run io tests
|
||||||
command: postgrest-test-io
|
command: postgrest-test-io
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run memory tests
|
name: Run memory tests
|
||||||
command: postgrest-test-memory
|
command: postgrest-test-memory
|
||||||
|
when: always
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user