ci: reorder tests in nix-test to improve performance and give early coverage feedback
This commit is contained in:
committed by
Wolfgang Walther
parent
67e3886547
commit
c67cd5e6fc
+20
-23
@@ -211,47 +211,44 @@ jobs:
|
|||||||
name: Install testing scripts
|
name: Install testing scripts
|
||||||
command: nix-env -f default.nix -iA tests tests.memoryTests
|
command: nix-env -f default.nix -iA tests tests.memoryTests
|
||||||
- run:
|
- 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
|
command: circleci-agent step halt
|
||||||
when: on_fail
|
when: on_fail
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 9.5
|
name: Upload coverage to codecov
|
||||||
command: postgrest-with-postgresql-9.5 postgrest-test-spec
|
command: bash <(curl -s https://codecov.io/bash) -f coverage/codecov.json
|
||||||
when: always
|
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 9.6
|
name: Run the spec tests against PostgreSQL 12
|
||||||
command: postgrest-with-postgresql-9.6 postgrest-test-spec
|
command: postgrest-with-postgresql-12 postgrest-test-spec
|
||||||
when: always
|
|
||||||
- run:
|
|
||||||
name: Run the spec tests against PostgreSQL 10
|
|
||||||
command: postgrest-with-postgresql-10 postgrest-test-spec
|
|
||||||
when: always
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 11
|
name: Run the spec tests against PostgreSQL 11
|
||||||
command: postgrest-with-postgresql-11 postgrest-test-spec
|
command: postgrest-with-postgresql-11 postgrest-test-spec
|
||||||
when: always
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run the spec tests against PostgreSQL 12
|
name: Run the spec tests against PostgreSQL 10
|
||||||
command: postgrest-with-postgresql-12 postgrest-test-spec
|
command: postgrest-with-postgresql-10 postgrest-test-spec
|
||||||
when: always
|
when: always
|
||||||
- run:
|
- 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
|
command: postgrest-test-spec-idempotence
|
||||||
when: always
|
when: always
|
||||||
- run:
|
|
||||||
name: Run io tests
|
|
||||||
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
|
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:
|
workflows:
|
||||||
|
|||||||
Reference in New Issue
Block a user