Skip to content

Commit

Permalink
ci: run spec tests against all pg versions, even if one of them fails (
Browse files Browse the repository at this point in the history
…#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)
  • Loading branch information
wolfgangwalther committed Oct 16, 2020
1 parent 5f33f01 commit 7809708
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7809708

Please sign in to comment.