Remo Rechkemmer and GitHub
801e229c59
refactor: Carve CLI and Version modules out of Config ( #1806 )
2021-04-12 19:17:47 +02:00
Remo Rechkemmer and GitHub
f99fd6cbad
refactor: Split up Types.hs and logically organize modules ( #1793 )
2021-04-11 18:28:01 +02:00
Remo Rechkemmer and GitHub
8c44410ce0
remove misleadingly named emptyOnFalse and similar ( #1803 )
2021-04-11 10:38:35 +02:00
Remo Rechkemmer and GitHub
65e7f9e846
nix: Add a tool for checking Haskell imports and exports ( #1768 )
2021-04-06 11:46:12 +02:00
Remo Rechkemmer and GitHub
e6973f966b
refactor: App.hs and related changes ( #1725 )
...
* Use ExceptT to avoid 'staircasing' case analysis in App.hs
* Split large function in App.hs into individual handler functions
* Adapt API of Auth.hs, OpenApi.hs etc. to simplify the use of those modules in App.hs
* Split optional rollback functionality into Middleware
* Unify SimpleError and ApiRequestError into one Error type, so it can be used across modules
2021-02-23 22:41:48 +01:00
Remo Rechkemmer and GitHub
0ddd676ef0
nix: Add a script to generate a graph of Haskell imports ( #1751 )
2021-02-07 22:15:44 +01:00
Remo Rechkemmer and GitHub
96478ed016
Add docs to all checked shell scripts in nix
2020-12-28 13:23:12 +01:00
Remo Rechkemmer and GitHub
2425cddaed
improve io-tests
...
Tests are now run through unix socket by default allowing
parallel execution. Test setup configuration is done via
environment variables instead of config files.
2020-12-24 16:09:25 +01:00
monacoremo and Steve Chavez
f2f639e484
update stack to lts-16.26
2020-12-23 09:39:36 -05:00
Remo Rechkemmer and GitHub
bf141ca13f
feat: Added --dump-schema CLI option to dump JSON of dbStructure schema cache.
...
Added postgrest-dump-schema to nix-shell returning a YAML dump of the test fixtures.
Authored-by: monacoremo <monacoremo>
2020-12-20 10:22:52 +01:00
Remo Rechkemmer and GitHub
71fa87937b
Migrate io-tests from bash to pytest
...
Authored-by: monacoremo <monacoremo>
2020-12-13 16:19:26 +01:00
07cb47e6ac
Improve dev tools in the Nix environment ( #1666 )
...
* Improve dev tools in the nix environment
Added postgrest-build, postgrest-run, postgrest-clean, postgrest-check
and postgrest-watch tools. Changed order of postgrest-test-spec-all to
run backwards from pg13 to pg9.5. Added shellcheck to lint shell scripts
in nix environment.
Co-authored-by: monacoremo <monacoremo>
2020-11-30 22:21:19 +01:00
Remo Rechkemmer and Steve Chavez
2eb8083869
Simplify Nix CI jobs
2020-10-14 09:10:47 -05:00
Remo Rechkemmer and Steve Chavez
741f017a17
Use Postgres 13 in tests/docker-compose.yml
2020-10-05 13:47:53 -05:00
7af54c5813
Upgrade nixpkgs to current master and add an upgrade checklist ( #1579 )
...
* simplify haskell packages overrides based on new nixpkgs
* update Nix gitignore
* simplify Haskell packages overlay
Co-authored-by: monacoremo <monacoremo>
2020-09-09 19:08:16 -05:00
Remo Rechkemmer and GitHub
69b09e312a
Nixify io and memory tests ( #1538 )
...
* Include tests for io and memory in the Nix environment.
* include spec tests in nix-shell by default
* install the io and memory tests in CI
2020-05-28 12:45:14 -05:00
Remo Rechkemmer and GitHub
08186ea51c
Nixify CircleCI setup ( #1535 )
...
* package ghr
* add nix-based release scripts
* refactor CI based on nix tests and release scripts
* update stack version in circleci
* update makefile
* remove docker directory
* add Docker Hub description
* add README on docker
2020-05-25 11:27:35 -05:00
Remo Rechkemmer and GitHub
3a1844ec8e
Fix the static build ( #1534 )
...
* openssl linking fix is required after all
* remove Cabal override (obsoleted on new nixpkgs)
2020-05-21 14:47:07 -05:00
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
Remo Rechkemmer and GitHub
e6874c866d
Fix UNKNOWN being shown as git commit hash ( #1533 )
...
Fixes https://github.com/PostgREST/postgrest/issues/1530
2020-05-20 14:10:53 -05:00
Remo Rechkemmer and GitHub
289bb66f56
Reduce size of the static docker image by patching the Nix openssl package ( #1528 )
...
* hook docker images into the default builds
2020-05-20 11:49:11 -05:00
Remo Rechkemmer and GitHub
bfcd289855
Build Docker image from Nix ( #1522 )
...
* Static docker image
* added tags for latest and with version
* add postgrest repository to docker image name
* set creation date on nix docker images
2020-05-16 11:35:32 -05:00
Remo Rechkemmer and GitHub
7c0fbf9b3f
Add static build with Nix ( fixes #1295 ) ( #1494 )
...
* Include modifications to nixpkgs and static-haskell-nix as patches.
* use the patched static-haskell-nix version
* Add cachix postgrest
2020-05-12 13:31:37 -05:00
Remo and GitHub
f02904a959
Simplify the DbStructure queries ( #1478 )
...
* remove unused parts of the DbStructure queries
* explain magic numbers in DbStructure queries
* simplify primary keys query
2020-04-29 13:01:46 -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
328c3453f8
Add tips and tricks to using nix-shell ( #1505 )
2020-04-28 12:45:29 -05:00
Remo and GitHub
dbc3aa28c4
Add scripts for linting and styling with all dependencies managed by Nix ( #1501 )
...
* Integrate the style and lint dependencies with Nix
* Add documentation on the nix styling scripts.
2020-04-27 15:04:50 -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 Steve Chavez
dea6c5eb92
Remove ghc options from stack.yaml
...
They are redundant after being added to postgrest.cabal in #1489
2020-04-27 12:41:55 -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
Remo and GitHub
d5f1d1b1ad
Pin version 0.3 of protolude in nix ( #1499 )
2020-04-24 12:09:56 -05:00
Remo and GitHub
1c19bbde93
Run tests against several PostgreSQL versions using Nix ( #1492 )
...
* Show test output with postgrest-test-spec* in nix-shell
* Test output in color
2020-04-24 11:05:37 -05:00
Remo and Steve Chavez
2e6a094d48
Disable nix pure by default in stack.yaml
2020-04-23 12:48:04 -05:00
Remo and GitHub
a7c396e464
Fix and improvements to with_tmp_db ( #1488 )
...
* Load fixtures in one psql session
* Add an option to keet the tmp directory and logs.
2020-04-22 11:57:40 -05:00
Remo and GitHub
24db4a1e25
Basics for building PostgREST with Nix ( #1489 )
...
* Add GHC options used with stack to postgrest.cabal
* Add a Nix derivation for just the executable.
2020-04-21 11:59:00 -05:00
Remo and GitHub
f6ce93f2c8
Add a script for running the test suite in a local temporary database. ( #1476 )
2020-04-14 12:34:50 -05:00
Remo and GitHub
8c35c9d711
Fix CI tests for Postgres 9.4 ( #1482 )
2020-04-14 11:00:43 -05:00