Wolfgang Walther
03f7234360
ci: test against PostgreSQL 18
2026-04-19 13:16:55 +00:00
Wolfgang Walther
1b74b93466
remove: drop support for PostgreSQL 13
...
PostgreSQL 13 has been EOL since November 2025 and will not be available
in the next Nixpkgs bump anymore.
2026-04-19 13:16:55 +00:00
Taimoor Zaeem and Wolfgang Walther
462798dc2d
nix: shorten postgrest-with-postgresql-xx scripts
...
Renames these scripts to `postgrest-with-pg-xx`. The renaming
helps reduce the length of temporary filenames. This is needed
to ensure that socket file names remain under the maximum
allowed length of 107 chars.
Closes #4461 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-11-18 09:40:16 +00:00
Wolfgang Walther
bd61cf9b60
nix: re-introduce postgrest-nixpkgs-upgrade
...
Resolves #4161
2025-07-11 15:53:06 +00:00
Wolfgang Walther
6bf2cb09a6
remove: drop support for PostgreSQL 12
...
This has been EOL since November and has been dropped from nixpkgs.
2025-07-11 15:53:06 +00:00
Taimoor Zaeem and Steve Chavez
f295130544
chore: update postgrest scripts in nix README.md
...
Adds `postgrest-commitlint` and removes `postgrest-nixpkgs-upgrade`.
2025-06-26 12:16:49 -05:00
Wolfgang Walther
149be6bc33
nix: expose nixpkgs input on flake
...
This also moves the pin for nixpkgs into flake.lock instead of our
custom file. Even for the classic interface via default.nix, the pin
will be loaded from flake.lock, thus everything stays in-sync.
2025-03-28 09:22:34 +00:00
Wolfgang Walther
2b91df8004
nix: Disable building profiled or dynamic libraries by default
...
We never need dynamic haskell libraries, because even the dynamic builds
only dynamically link non-haskell dependencies, but always link haskell
dependencies statically.
Profiled libraries are only required when running the memory test, so
explicitly enable them for the profiled package.
This also means, that we don't need to hide the memory test behind a
feature flag anymore. The reason always was assumed to be the big number
of rebuilds required for it. I assume ever since we moved off of
static-haskell-nix and back to nixpkgs-based builds, we have been
building profiled libraries for all our dependencies anway.
2025-03-22 19:37:03 +00:00
Wolfgang Walther
57d11c7914
chore: Update nix/README's command list
...
We had added the release tools by default a while ago.. and by now have
many more tools available.
2025-03-22 19:37:03 +00:00
Wolfgang Walther and Wolfgang Walther
48aabeb473
nix: add postgrest-with-postgresql-17
...
PostgreSQL 17 has been released:
https://www.postgresql.org/about/news/postgresql-17-released-2936/
Let's make sure CI runs with it, too.
2024-11-12 21:13:31 +01:00
Wolfgang Walther and Wolfgang Walther
bb96c2dc74
feat: Drop support for pg 11
...
PostgreSQL 11 is EOL since November 2023.
2024-06-15 17:23:34 +02:00
Wolfgang Walther and Wolfgang Walther
126178642b
feat: Drop support for pg 10
2024-06-15 17:23:34 +02:00
Wolfgang Walther and Wolfgang Walther
daa77d17aa
feat: Drop support for pg 9.6
2024-06-15 17:23:34 +02:00
Laurence Isla and GitHub
3f162535b8
nix: add example on how to use a library locally
2024-03-26 11:39:07 -05:00
Laurence Isla and Wolfgang Walther
a1f2ecadda
nix: Move docs tools into core infrastructure
2024-02-18 13:10:00 +01:00
omahs and GitHub
f10d4139fe
nix: fix typos in README
2023-11-08 11:43:42 -05:00
steve-chavez
a9d6c318fd
nix: instructions for static binary
2023-10-06 19:54:05 -03:00
steve-chavez
531a183b44
nix: postgrest-coverage notice
2023-08-17 13:43:48 -05:00
steve-chavez
739f056b0a
nix: add postgrest-repl command
2023-08-17 13:43:48 -05:00
Taimoor Zaeem and GitHub
2977d09779
chore: maintenance to the Nix development and build guide
2023-07-26 20:28:59 -05:00
Robert Vollmert
e731241b97
test: optionally build postgrest with cabal in postgrest-loadtest
...
By default, postgrest-with-pgrst builds postgrest as a nix package,
which means that source changes cause a full rebuild. With this
change, running the loadtest as
PGRST_BUILD_CABAL=1 postgrest-loadtest
rebuilds directly using cabal, like postgrest-build. Note that
results between nix and cabal builds aren't necessarily comparable
due to differing build parameters.
2023-03-20 15:00:11 +01:00
Robert Vollmert
216dc833fd
test: add optional latency to postgrest-loadtest
...
This pipes data between client/postgrest and between
postgrest/database through a proxy that adds delay
(github.com/robx/slocat).
2023-03-20 15:00:11 +01:00
steve-chavez
781fa592ca
refactor: delete QueryCost, instead use PlanSpec
2022-12-12 13:31:02 -05:00
steve-chavez
d87b622d64
nix: update tests README
2022-06-20 15:55:22 -05:00
Wolfgang Walther and Wolfgang Walther
8b63d928ae
test: Reorganize test/ folder into one subdirectory for each test type
2022-01-07 13:10:36 +01:00
Wolfgang Walther and Wolfgang Walther
a65ac9b0f6
feat: drop support for pg 9.5
2021-11-24 19:42:53 +01:00
Wolfgang Walther and Wolfgang Walther
4ded01b104
nix(fix): Fix missed devtools->devTools renaming
2021-04-24 15:25:10 +02:00
Wolfgang Walther and Wolfgang Walther
de73ced34a
nix(feat): Change memoryTests shell argument to memory
...
Avoids confusion with `memoryTest`.
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Remo Rechkemmer
ab6f90aa78
nix: Add postgrest-with-* tools to run with temporary databases of different versions
2021-01-04 23:14:44 +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
Wolfgang Walther and Wolfgang Walther
b5185de706
nix: add "cd $rootdir" to all shell scripts via checked-shell-script
2020-12-24 14:44:01 +01:00
Wolfgang Walther and Wolfgang Walther
1a5f6cce46
Add docker files to run nix dev environment on Windows
2020-12-01 00:42:21 +01:00
Wolfgang Walther and GitHub
f2cb91740e
Use cabal v2-exec to run io tests, include io tests in nix-shell by default; remove obsolete ncat dependency ( #1673 )
...
Use cabal v2-exec to run io tests, include io tests in nix-shell by default; remove obsolete ncat dependency
2020-12-01 00:37:45 +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
Wolfgang Walther and Steve Chavez
eed0d3a66c
ci: add coveralls.io integration
2020-10-22 12:05:25 -05:00
Wolfgang Walther and Steve Chavez
719c4abba2
Drop support for postgres 9.4
2020-10-15 08:43:28 -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
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 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
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
178c5d54d5
Integrate stack in the nix-shell environment
2020-04-22 14:30:02 -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