Wolfgang Walther and Wolfgang Walther
32ff9dfb48
nix(feat): Add postgrest-loadtest
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
ab90bd24e0
nix(feat): Add postgrest-with-git and postgrest-with-pgrst tools
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
a65ac9b0f6
feat: drop support for pg 9.5
2021-11-24 19:42:53 +01:00
monacoremo
71262fbc5c
nix: Hook hsie check-aliases into postgrest-lint
2021-11-05 08:08:00 +01:00
monacoremo
d16a4a9a2b
nix: fix statix hints
2021-11-02 23:10:23 +01:00
monacoremo
0f95900822
nix: Upgrade hsie tool to GHC 8.10.7
2021-11-01 23:23:19 +01:00
monacoremo
8ac14447ef
nix: Update nixpkgs to latest unstable version
2021-11-01 23:23:19 +01:00
laurenceisla and GitHub
627c3c34b7
feat: Make GUC names for headers, cookies and jwt claims compatible with PostgreSQL v14
...
Getting the value for a header GUC on PostgreSQL v14 is done using `current_setting('request.headers')::json->>'name-of-header'` and in a similar way for `request.cookies` and `request.jwt.claims`
PostgreSQL versions below 14 can opt in to the new JSON GUCs by setting the `db-use-legacy-gucs` config option to false (true by default)
2021-10-12 12:58:52 -05:00
monacoremo
2982c5de2e
nix: Fix postgrest-check
2021-09-23 22:36:58 +02:00
monacoremo
d9b15adb35
ci: Use GitHub Actions for CI/CD
2021-08-08 06:42:59 +02:00
monacoremo
83cc358e1b
nix: Update static-haskell-nix and fix stripped executable
2021-07-15 09:41:52 +02:00
monacoremo
27c8dabd8d
nix: Use GHC 8.10.4 in Nix build environment
2021-07-15 09:41:52 +02:00
monacoremo
9568c4605a
nix: Update nixpkgs and static-haskell-nix
2021-07-15 09:41:52 +02:00
Wolfgang Walther and Wolfgang Walther
e5350d2d50
nix(refactor): Split cabalTools from devtools
...
This allows to use `postgrest-build` in CI without pulling in a lot of dependencies.
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
249d4117e0
nix(style): reorder tools in default.nix
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
b566481477
nix(refactor): Move shell scripts to subdirectory nix/tools
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
fe497fc438
nix(refactor): Add buildToolbox to streamline module interface towards shell.nix
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
2e73886adc
nix(refactor): Split memoryTest from tests.nix into memory.nix
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
32bac81d91
nix(refactor): Move withPostgresqlVersions and withAllVersions to new withTools
2021-04-18 13:51:39 +02:00
579a626de2
nix: move withtmpdb to separate file
...
Co-authored-by: Remo Rechkemmer <59358383+monacoremo@users.noreply.github.com >
2021-04-12 19:03:16 +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
Wolfgang Walther and GitHub
c7f0d42323
Add postgrest-coverage to show and upload hpc reports to codecov
2020-12-30 13:22:25 +01:00
monacoremo and Steve Chavez
9cfc66a6a4
upgrade nixpkgs and apply related fixes
2020-12-23 09:39:36 -05: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
Wolfgang Walther and Steve Chavez
719c4abba2
Drop support for postgres 9.4
2020-10-15 08:43:28 -05:00
monacoremo and Steve Chavez
e4e84e5714
Upgrade nixpkgs and add Postgres 13 support
2020-10-05 13:47:53 -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
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
Steve Chavez and GitHub
67344c8e0a
cabal: fix upload to hackage ( #1532 )
...
When doing:
```
cabal upload dist-newstyle/sdist/postgrest-7.0.1.tar.gz
```
The following error is shown:
```
Error: Invalid package
'ghc-options: -Wall -Werror' makes the package very easy to break with
future GHC versions because new GHC versions often add new warnings.
Use just 'ghc-options: -Wall' instead. Alternatively, if you want to
use this, make it conditional based on a Cabal configuration flag
(with 'manual: True' and 'default: False') and enable that flag
during development.
```
Put -Werror in a cabal flag to work around this restriction.
2020-05-19 13:59:33 -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
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
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 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