mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-11 12:26:04 +03:00
Switch completely to using nixci
This commit is contained in:
parent
bccf50495d
commit
3114cb6791
@ -24,7 +24,7 @@ TODO
|
||||
## Contributing
|
||||
|
||||
- If you are adding a *new* service, see https://github.com/cachix/devenv/tree/main/src/modules/services for inspiration.
|
||||
- When opening a PR, note that we do not have CI yet, so please run `./test.sh` locally on your **NixOS** machine.
|
||||
- When opening a PR, note that we do not have CI yet, so please run `nix run github:srid/nixci`[^cache] locally on your **NixOS** machine.
|
||||
|
||||
## Credits
|
||||
|
||||
@ -35,3 +35,6 @@ Thanks to [the devenv project](https://github.com/cachix/devenv/tree/main/src/mo
|
||||
### Why not re-use devenv service modules?
|
||||
|
||||
This is currently not possible (nor prioritized by the devenv project), which is why we must create our own services. See https://github.com/cachix/devenv/issues/75
|
||||
|
||||
|
||||
[^cache]: Run `nix run nixpkgs#cachix use srid` to make use of Nix cache for nixci.
|
14
test.sh
14
test.sh
@ -1,14 +0,0 @@
|
||||
set -euxo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# TODO: Replace this with `nix run github:srid/nixci`
|
||||
|
||||
# On NixOS, run the VM tests to test runtime behaviour
|
||||
if command -v nixos-rebuild &> /dev/null; then
|
||||
# example test
|
||||
nix flake check -L ./example --override-input services-flake .
|
||||
|
||||
# service tests
|
||||
nix flake check -L ./test --override-input services-flake .
|
||||
fi
|
Loading…
Reference in New Issue
Block a user