From 780970885e41861c8f0fb54b312a2ce807d56f85 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 16 Oct 2020 18:15:20 +0200 Subject: [PATCH] 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) --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e59a63c6..88f51d39f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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