monacoremo
6d9fcfa09f
ci: Remove unused create_test_db script
2021-08-08 06:42:59 +02:00
monacoremo
fb2adea5e9
ci: Adjust build status badge in READMEs
2021-08-08 06:42:59 +02:00
monacoremo
d9b15adb35
ci: Use GitHub Actions for CI/CD
2021-08-08 06:42:59 +02:00
Remo Rechkemmer and GitHub
68bf17118d
Upgrade Nix dependencies including nixpkgs and static-haskell-nix ( #1899 )
2021-07-23 19:54:29 +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
Laurence Isla
6fe88ef53c
Add Oblivious as a sponsor and a Sponsors section to the docker hub description
2021-07-12 19:30:35 -05: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
c691b37f76
nix(feat): Create all temporary directories with script name template
...
Temporary directories are now created in $TMPDIR/postgrest/script-name-XXX. This allows recognizing the origin of a single temporary directory and uploading the whole $TMPDIR/postgrest folder as an artifact in CI.
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
14ddecc81a
nix(fix): Avoid rebuilding during postgrest-coverage
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
3611eab39c
nix(fix): Make postgrest-dump-schema work in nix-shell --pure
2021-04-24 15:07:13 +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
ba47a54293
nix(refactor): Make with_tmp_db true checkedShellScript
...
This extends the interface of withTmpDb to allow loading different sets
of database fixtures via `postgrest-with-postgresql-xx --fixtures
<path>`.
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
7ca0d46936
nix(fix): Fix postgrest-push-cachix in nix-shell --pure
2021-04-18 13:51:39 +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
de73ced34a
nix(feat): Change memoryTests shell argument to memory
...
Avoids confusion with `memoryTest`.
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
bc879507ae
nix(fix): Make naming of tools in postgrest-release- namespace consistent
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
eee5d5d482
nix(feat): Add shellcheck to postgrest-lint for bash scripts in test/*
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
e199337a53
nix(feat): Check required environment variables in postgrest-release tools
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
2417cfb02f
nix(feat): Force optional arguments to go before positional arguments in argbash scripts
...
This improves passing subcommands to postgrest-with- tools.
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
2559d32912
nix(feat): Add argbash bash completion support
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
c2df7d8198
nix(fix): Avoid losing exit trap through subcommand in postgrest-with-all
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
c8edfac39e
nix(feat): Add argbash support to checked-shell-script
...
Each postgrest- script now has a -h/--help option showing the
checked-shell-script.docs argument.
Additional CLI arguments can be defined through the
checked-shell-script.args argument using the argbash template syntax:
https://argbash.readthedocs.io/en/stable/guide.html
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
39d4646a4c
nix(refactor): Add withEnv to checked-shell-script
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
40b1dccc54
nix(fix): Load withTmpDb into nix to have shellcheck run on it
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
Wolfgang Walther and Wolfgang Walther
dccce946e3
nix(refactor): Move name arguments into scripts and use global postgresql in tests.nix
2021-04-18 13:51:39 +02:00
Remo Rechkemmer and GitHub
915d568257
ci: Use cachix authtoken in CI ( #1821 )
2021-04-17 16:25:28 +02:00
Wolfgang Walther and Wolfgang Walther
67ca814d0b
nix: properly throw away tix files for postgrest-watch, resolves #1807
2021-04-12 19:03:16 +02:00
Wolfgang Walther and Wolfgang Walther
fc791a6320
nix: add withTmpDir to checked-shell-script
2021-04-12 19:03:16 +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
Wolfgang Walther and GitHub
a5372e4713
nix: show better error messages for missing arguments in hsie scripts ( #1798 )
2021-04-09 18:48:00 +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
0ddd676ef0
nix: Add a script to generate a graph of Haskell imports ( #1751 )
2021-02-07 22:15:44 +01: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
Wolfgang Walther and Wolfgang Walther
56a7bc5030
nix: Fix build errors with stale .tix files present
2021-01-02 13:51:00 +01:00
Wolfgang Walther
cc54135bf0
Rename master branch to main; replace whiteList with isAllowed
2020-12-31 14:37:52 +01:00
Wolfgang Walther and Remo Rechkemmer
93541035f6
Fix postgrest-coverage throwing error when installed with nix-env
2020-12-30 16:38:13 +01:00
Wolfgang Walther and Remo Rechkemmer
568477b6af
Fix io tests not collecting coverage data when using run()
...
Before, postgrest was killed after each test and no coverage data was saved.
Now the process is terminated gracefully via SIGTERM first to allow writing the .tix file.
2020-12-30 14:51:58 +01: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
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
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
2cbe1ba903
feat: Add --example cli option to show example config file
2020-12-23 19:39:40 +01:00
Wolfgang Walther and Wolfgang Walther
69b459e7b6
Use environment variables for configuration in developer tooling
...
Avoid the need for configuration files for temporary database connections.
2020-12-23 19:39:40 +01:00
Wolfgang Walther and Wolfgang Walther
b7fc393e49
feat: Read config directly from environment variables
...
resolves #1624
2020-12-23 19:39:40 +01:00
monacoremo and Steve Chavez
9cfc66a6a4
upgrade nixpkgs and apply related fixes
2020-12-23 09:39:36 -05:00