70af3b126a
The format script can be used to automatically format the Nix source files and also verify that the files are formatted using the `-c` command argument. At the moment some files are exempt from the formatting to avoid causing merge conflicts in active pull requests. Finally, update the contribution guidelines to note that `nixfmt` should be used.
14 lines
204 B
YAML
14 lines
204 B
YAML
language: nix
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
before_script:
|
|
- mkdir -m 0755 -p /nix/var/nix/{profiles,gcroots}/per-user/$USER
|
|
|
|
script:
|
|
- ./format -c
|
|
- nix-shell . -A install
|
|
- nix-shell tests -A run.all
|