Remo Rechkemmer and GitHub
48c9ac36b1
Bump nixpkgs and simplify/clean up nix setup ( #1529 )
...
* Refactor tests and fix README
* fix linting hints from new hlint version
* postgrest-style with new nixpkgs-fmt
2020-05-20 21:30:20 -05:00
steve-chavez
7ffac522e3
circleci: remove linux distro releases
...
Prefer the linux static binary for x64
2020-05-18 13:05:09 -05:00
steve-chavez
98bf4d861d
circleci: add static bin to release
2020-05-18 13:05:09 -05:00
Remo and GitHub
8b41b71db7
More consistent loading of the test fixtures ( #1506 )
...
Remove db setup from the Haskell test suite and include it in the test bash scripts.
2020-04-29 12:22:15 -05:00
Remo and GitHub
d4cf8e7abb
Hook the Nix styling scripts into CI ( #1504 )
2020-04-29 10:44:11 -05:00
Remo and GitHub
9134171b95
Fix the cachix push logic in CircleCI
...
Before pushing to cachix, check if the CACHIX_SIGNING_KEY env var is available.
2020-04-28 14:04:06 -05:00
Remo and GitHub
ad92c207f2
Run the spec test suite from the nix build job ( #1503 )
...
* Add caching to the tests run in CI with Nix
2020-04-27 13:39:57 -05:00
Remo and GitHub
c0546e0e46
Basic CI integration for Nix builds ( #1495 )
...
* Skip pushing to cachix for pull requests from forks.
* Build PostgREST first in the nix CI job in order to fail fast
2020-04-25 13:08:30 -05:00
Robert and GitHub
ae77cf9a08
circleci: Build linters with memory-saving ghc-options. ( #1490 )
...
Previously, the linters would use the cached build artefacts from
building postgrest with -fno-spec-constr via stack.yaml. Potentially
passing it to the linter build explicitly will fix recent out-of-memory
issues.
2020-04-19 14:15:12 -05:00
Robert Vollmert and Steve Chavez
e59c72cff3
circleci: Break out a plain build and cache job
2020-04-16 13:10:21 -05:00
Robert Vollmert and Steve Chavez
da573a1805
circleci: Dedicated cache key for style checks
2020-04-16 13:10:21 -05:00
Robert Vollmert and Steve Chavez
e24a7d005a
circleci: Split style and hlint out into separate job
2020-04-16 13:10:21 -05:00
Remo and GitHub
8c35c9d711
Fix CI tests for Postgres 9.4 ( #1482 )
2020-04-14 11:00:43 -05:00
Wolfgang Walther and GitHub
82fa1d8812
add postgres-12 tests to circleci ( #1472 )
...
* circleci: new postgres docker containers need host auth trust
2020-04-06 11:00:26 -05:00
steve-chavez
426637a47c
Fix circleci golang docker image
...
Upgrade golang otherwise ghr throws:
unrecognized import path "math/bits"
2020-04-03 11:22:11 -05:00
steve-chavez
eebe319bfd
Recommend doing make check pre-commit
2019-09-30 08:46:31 -05:00
steve-chavez
b077974ebc
Add tests for call proc queries EXPLAIN costs
...
* circleci: add run query costs tests
2019-09-11 12:01:41 -05:00
Robert Vollmert and Steve Chávez
cdc1177762
stylish-haskell: check Haskell source files only
...
The style check was failing due to a changed stack.yaml.lock file.
(That file still should be updated, but this is not where it should
cause a failure.)
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
97035e0b8b
circleci: make sure hlint is in the $PATH
2019-08-27 09:35:27 -05:00
steve-chavez
64a86b899f
Remove centos6 release
...
Centos 6 is missing ghc 8.4.4 support, see
https://github.com/commercialhaskell/stack/issues/4161
The static binary release for linux can be used instead.
2019-07-30 22:34:28 +00:00
Diogo Biazus and Steve Chávez
291de5bc1c
LTS 13.29 ( #1364 )
...
* Update resolver to lts-13.29 and add lock file to repository
* Upgrade stack version
* Save cache after building dependencies only to have faster feedback loop when tests fail
* Move private functions from QueryBuilder to a separate Private module
* Move more functions over to private trying to make compilation consume less memory
* Split private in 4 modules
* Remove unused LambdaCase pragma
* Add profile to memory-tests.sh so it can find postgrest executable
* Move save dependencies before building and running tests for faster feedback loop
2019-07-29 17:14:06 +00:00
Robert Vollmert and Steve Chávez
e3a53de8a6
circleci: bump postgres to 11.4 to test json bugfix
2019-06-28 11:45:27 -05:00
steve-chavez
3cce6ca02b
Change docker image to postgres 11.3
...
PostgreSQL 11.4 patched an error for wich we had a test.
See https://www.postgresql.org/docs/release/11.4/ json_to_record.
2019-06-26 18:14:36 -05:00
Robert and Steve Chávez
7356327e5b
Tweaks to circle-ci profiling build ( #1321 )
...
* circleci: Update stack versions from 1.1.2 to 1.9.3.
* circleci: Don't try to install unused packdeps and cabal-install.
* memory-tests: Rely on `stack build` to have been called already.
This happens in the previous circleci step.
2019-06-08 21:12:55 -05:00
Dan Amoroso and Steve Chávez
78e5677fbe
Add server-unix-socket config option ( #1303 )
...
Add ncat workaround to test socket connection on CircleCI
2019-06-05 12:57:47 -05:00
Robert Vollmert and Steve Chávez
65fc672417
Change tests to use postgres-json-schema instead of hjsonschema.
...
Embeds https://github.com/gavinwahl/postgres-json-schema .
2019-06-01 23:26:33 -05:00
Xavier Francisco and Steve Chávez
28b3d6cafd
Update stylish haskell config; apply all; add CI config ( #1299 )
...
* Update config default; Copy non-defaults
* Update .stylish-haskell config version to match pgrst
* Apply stylish haskell to all files
* CircleCI config
* Remove redundant import.
What is used from Network.HTTP.Types.Headers is also exported by Network.HTTP.Types.
* Grouped imports
* Show un-styled files on CircleCI failure
* Fix styling imports
* Apply adhoc standard correctly
2019-05-23 10:44:34 -05:00
steve-chavez
3078a11144
Remove circleci extra cabal checks
...
Currently these extra checks are giving an out of memory error on CircleCI:
Hint: Max memory usage of this container is 4231065600
2019-05-19 13:18:03 -05:00
steve-chavez
b53e8932e5
Add CircleCI test suite for pg11
2019-04-07 18:39:12 -05:00
steve-chavez
b48824bddd
Fix #1065 , correct test for pg10
...
Also add pg10 testing job on CircleCI
2018-10-12 09:24:22 -05:00
steve-chavez
516976e32f
Add memory usage tests
2018-01-10 11:43:16 -05:00
steve-chavez
57477749aa
Run tests on both PostgreSQL 9.4 and 9.6 on CircleCI
2017-10-18 17:41:55 -05:00
steve-chavez
d98a05023d
Change circle build-test job to use PostgreSQL 9.6.2
2017-09-08 19:56:00 -05:00
Steve Chávez and Joe Nelson
4901f4327f
Add autorelease for linux distros, osx and windows ( #923 )
2017-09-05 18:37:15 -05:00