diff --git a/.circleci/config.yml b/.circleci/config.yml index c84370bba..5eef71ac7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -170,6 +170,38 @@ jobs: name: run tests 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: docker: - image: circleci/buildpack-deps:trusty @@ -268,6 +300,10 @@ workflows: filters: tags: only: /v[0-9]+(\.[0-9]+)*/ + - build-test-11: + filters: + tags: + only: /v[0-9]+(\.[0-9]+)*/ - build-prof-test: filters: tags: @@ -277,6 +313,7 @@ workflows: - build-test-9.4 - build-test-9.6 - build-test-10 + - build-test-11 - build-prof-test filters: tags: @@ -288,6 +325,7 @@ workflows: - build-test-9.4 - build-test-9.6 - build-test-10 + - build-test-11 - build-prof-test filters: tags: @@ -299,6 +337,7 @@ workflows: - build-test-9.4 - build-test-9.6 - build-test-10 + - build-test-11 - build-prof-test filters: tags: @@ -310,6 +349,7 @@ workflows: - build-test-9.4 - build-test-9.6 - build-test-10 + - build-test-11 - build-prof-test filters: tags: