Fix CI tests for Postgres 9.4 (#1482)
This commit is contained in:
@@ -82,12 +82,6 @@ jobs:
|
|||||||
sudo apt-get install -y --only-upgrade binutils
|
sudo apt-get install -y --only-upgrade binutils
|
||||||
sudo apt-get install -y postgresql-client
|
sudo apt-get install -y postgresql-client
|
||||||
stack setup
|
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:
|
- run:
|
||||||
name: build src and tests dependencies
|
name: build src and tests dependencies
|
||||||
command: |
|
command: |
|
||||||
@@ -108,6 +102,15 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://circleci@localhost" postgrest_test) stack test
|
POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://circleci@localhost" postgrest_test) stack test
|
||||||
test/io-tests.sh
|
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:
|
- run:
|
||||||
name: run linter
|
name: run linter
|
||||||
command: make lint
|
command: make lint
|
||||||
|
|||||||
Reference in New Issue
Block a user