Switch completely to using nixci

This commit is contained in:
Sridhar Ratnakumar 2023-07-18 11:29:22 -04:00 committed by Sridhar Ratnakumar
parent bccf50495d
commit 3114cb6791
2 changed files with 4 additions and 15 deletions

View File

@ -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
View File

@ -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