From c67cd5e6fc0a7d06c37e7909e3b688c0c2619fd8 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 15 Apr 2021 21:03:19 +0200 Subject: [PATCH] ci: reorder tests in nix-test to improve performance and give early coverage feedback --- .circleci/config.yml | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2a79b7755..10fe8b5e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -211,47 +211,44 @@ jobs: name: Install testing scripts command: nix-env -f default.nix -iA tests tests.memoryTests - run: - name: Skip tests on build failure + name: Run coverage (io tests and spec tests against PostgreSQL 13) + command: postgrest-coverage + when: always + - run: + name: Skip tests on build or primary test failure command: circleci-agent step halt when: on_fail - run: - name: Run the spec tests against PostgreSQL 9.5 - command: postgrest-with-postgresql-9.5 postgrest-test-spec - when: always + name: Upload coverage to codecov + command: bash <(curl -s https://codecov.io/bash) -f coverage/codecov.json - run: - name: Run the spec tests against PostgreSQL 9.6 - command: postgrest-with-postgresql-9.6 postgrest-test-spec - when: always - - run: - name: Run the spec tests against PostgreSQL 10 - command: postgrest-with-postgresql-10 postgrest-test-spec + name: Run the spec tests against PostgreSQL 12 + command: postgrest-with-postgresql-12 postgrest-test-spec when: always - run: name: Run the spec tests against PostgreSQL 11 command: postgrest-with-postgresql-11 postgrest-test-spec when: always - run: - name: Run the spec tests against PostgreSQL 12 - command: postgrest-with-postgresql-12 postgrest-test-spec + name: Run the spec tests against PostgreSQL 10 + command: postgrest-with-postgresql-10 postgrest-test-spec when: always - run: - name: Check the spec tests for idempotence against PostgreSQL 13 + name: Run the spec tests against PostgreSQL 9.6 + command: postgrest-with-postgresql-9.6 postgrest-test-spec + when: always + - run: + name: Run the spec tests against PostgreSQL 9.5 + command: postgrest-with-postgresql-9.5 postgrest-test-spec + when: always + - run: + name: Check the spec tests for idempotence command: postgrest-test-spec-idempotence when: always - - run: - name: Run io tests - command: postgrest-test-io - when: always - run: name: Run memory tests command: postgrest-test-memory when: always - - run: - name: Run coverage - command: postgrest-coverage - - run: - name: Upload coverage to codecov - command: bash <(curl -s https://codecov.io/bash) -f coverage/codecov.json workflows: