Robert Vollmert and Steve Chavez
5baec4819f
circleci: update base image
...
Switches to the non-legacy cimg/base: https://circleci.com/developer/images/image/cimg/base
In particular, this updates the gcc version to fix the build of
cryptonite-0.27: https://github.com/haskell-crypto/cryptonite/issues/326
2021-03-14 12:45:02 -05: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 GitHub
c7f0d42323
Add postgrest-coverage to show and upload hpc reports to codecov
2020-12-30 13:22:25 +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
add326a79d
ci: skip postgrest-release-dockerhubdescription for nightly builds
2020-12-23 19:39:40 +01:00
monacoremo and Wolfgang Walther
a52c114ff4
add test for spec idempotence
2020-12-13 22:13:05 +01:00
Wolfgang Walther and Wolfgang Walther
de5742fc7d
Make nix the one and only dev environment; remove obsolete tooling
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
steve-chavez
65968b5320
circleci: fix nightly release
...
Also delete unused variable in release/default.nix
2020-11-13 14:12:28 -05:00
steve-chavez
3830887577
ci: add nightly version to cabal file
2020-11-10 22:47:58 -05:00
steve-chavez
5d140f6fa0
circleci: add nightly release
...
For github and dockerhub
2020-11-10 22:47:58 -05:00
steve-chavez
51b43f5605
nix: change release scripts to use a version arg
2020-11-10 22:47:58 -05:00
steve-chavez
63849f1275
circleci: make release job a machine
...
setup_remote_docker is somehow not working and gives:
docker: command not found
2020-11-10 22:47:58 -05:00
steve-chavez
9f8d1af2cd
nix: add postgrest-docker-login wrapper func
2020-11-10 22:47:58 -05:00
Wolfgang Walther and Steve Chavez
eed0d3a66c
ci: add coveralls.io integration
2020-10-22 12:05:25 -05:00
Wolfgang Walther and GitHub
b7b66b600d
ci: remove io tests from stack-test because of random segmentation faults ( #1627 )
...
io tests already run on nix-build-test
2020-10-16 13:53:43 -05:00
Wolfgang Walther and GitHub
780970885e
ci: run spec tests against all pg versions, even if one of them fails ( #1628 )
...
- when the build fails no tests are run(circleci-agent step halt)
- when the build succeeds all tests are run, even if some of them fail(when: always)
2020-10-16 11:15:20 -05:00
Wolfgang Walther and Steve Chavez
719c4abba2
Drop support for postgres 9.4
2020-10-15 08:43:28 -05:00
Remo Rechkemmer and Steve Chavez
2eb8083869
Simplify Nix CI jobs
2020-10-14 09:10:47 -05:00
monacoremo and Steve Chavez
e4e84e5714
Upgrade nixpkgs and add Postgres 13 support
2020-10-05 13:47:53 -05:00
Steve Chavez and GitHub
43d71e95ac
Allow schema cache reloading with NOTIFY ( #1542 )
...
Fixes https://github.com/PostgREST/postgrest/issues/1512
Helps on environments where you can't send unix signals(Windows, managed
containers). Also provides better UX for schema reloads - NOTIFY
can be sent from pg clients(psql, pgadmin).
`NOTIFY pgrst` - with no payload - should be done to reload the schema cache.
Notifications with a payload will be ignored.
The channel can be enabled with `db-channel-enabled`(false by default)
and its name can be configured with `db-channel`.
The LISTEN thread uses a dedicated pg connection.
This connection is recovered if it fails.
A debounce of 1ms is done in case too many NOTIFYs arrive.
2020-06-24 19:00:02 -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
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