From 8c35c9d7111231f121325c135ae7e5d7012b9edc Mon Sep 17 00:00:00 2001 From: Remo <59358383+monacoremo@users.noreply.github.com> Date: Tue, 14 Apr 2020 18:00:43 +0200 Subject: [PATCH] Fix CI tests for Postgres 9.4 (#1482) --- .circleci/config.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b91840ae1..a3a60a315 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -82,12 +82,6 @@ jobs: sudo apt-get install -y --only-upgrade binutils sudo apt-get install -y postgresql-client stack setup - rm -rf $(stack path --dist-dir) $(stack path --local-install-root) - stack install hlint stylish-haskell - - run: - name: Add stack tools to $PATH - command: | - echo "export PATH=/home/circleci/.local/bin:$PATH" >> $BASH_ENV - run: name: build src and tests dependencies command: | @@ -108,6 +102,15 @@ jobs: command: | POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://circleci@localhost" postgrest_test) stack test test/io-tests.sh + - run: + name: install dependencies + command: | + rm -rf $(stack path --dist-dir) $(stack path --local-install-root) + stack install hlint stylish-haskell + - run: + name: Add stack tools to $PATH + command: | + echo "export PATH=/home/circleci/.local/bin:$PATH" >> $BASH_ENV - run: name: run linter command: make lint