Add CircleCI test suite for pg11
This commit is contained in:
@@ -170,6 +170,38 @@ jobs:
|
|||||||
name: run tests
|
name: run tests
|
||||||
command: POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://circleci@localhost" postgrest_test) stack test
|
command: POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://circleci@localhost" postgrest_test) stack test
|
||||||
|
|
||||||
|
build-test-11:
|
||||||
|
docker:
|
||||||
|
- image: circleci/buildpack-deps:trusty
|
||||||
|
environment:
|
||||||
|
- PGHOST=localhost
|
||||||
|
- image: circleci/postgres:11
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=circleci
|
||||||
|
- POSTGRES_DB=circleci
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- v1-stack-dependencies-{{ checksum "postgrest.cabal" }}-{{ checksum "stack.yaml" }}
|
||||||
|
- run:
|
||||||
|
name: install stack & dependencies
|
||||||
|
command: |
|
||||||
|
curl -L https://github.com/commercialhaskell/stack/releases/download/v1.1.2/stack-1.1.2-linux-x86_64.tar.gz | tar zx -C /tmp
|
||||||
|
sudo mv /tmp/stack-1.1.2-linux-x86_64/stack /usr/bin
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libgmp-dev
|
||||||
|
sudo apt-get install -y postgresql-client
|
||||||
|
stack setup
|
||||||
|
- run:
|
||||||
|
name: build src and tests
|
||||||
|
command: |
|
||||||
|
stack build --fast -j1
|
||||||
|
stack build --fast --test --no-run-tests
|
||||||
|
- run:
|
||||||
|
name: run tests
|
||||||
|
command: POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://circleci@localhost" postgrest_test) stack test
|
||||||
|
|
||||||
build-prof-test:
|
build-prof-test:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/buildpack-deps:trusty
|
- image: circleci/buildpack-deps:trusty
|
||||||
@@ -268,6 +300,10 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /v[0-9]+(\.[0-9]+)*/
|
only: /v[0-9]+(\.[0-9]+)*/
|
||||||
|
- build-test-11:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /v[0-9]+(\.[0-9]+)*/
|
||||||
- build-prof-test:
|
- build-prof-test:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
@@ -277,6 +313,7 @@ workflows:
|
|||||||
- build-test-9.4
|
- build-test-9.4
|
||||||
- build-test-9.6
|
- build-test-9.6
|
||||||
- build-test-10
|
- build-test-10
|
||||||
|
- build-test-11
|
||||||
- build-prof-test
|
- build-prof-test
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
@@ -288,6 +325,7 @@ workflows:
|
|||||||
- build-test-9.4
|
- build-test-9.4
|
||||||
- build-test-9.6
|
- build-test-9.6
|
||||||
- build-test-10
|
- build-test-10
|
||||||
|
- build-test-11
|
||||||
- build-prof-test
|
- build-prof-test
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
@@ -299,6 +337,7 @@ workflows:
|
|||||||
- build-test-9.4
|
- build-test-9.4
|
||||||
- build-test-9.6
|
- build-test-9.6
|
||||||
- build-test-10
|
- build-test-10
|
||||||
|
- build-test-11
|
||||||
- build-prof-test
|
- build-prof-test
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
@@ -310,6 +349,7 @@ workflows:
|
|||||||
- build-test-9.4
|
- build-test-9.4
|
||||||
- build-test-9.6
|
- build-test-9.6
|
||||||
- build-test-10
|
- build-test-10
|
||||||
|
- build-test-11
|
||||||
- build-prof-test
|
- build-prof-test
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
Reference in New Issue
Block a user