1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-07 22:36:53 +03:00

Add test suite instructions to README'

'
This commit is contained in:
Nicolas Mattia 2019-03-01 10:24:15 +01:00
parent 47cd53f704
commit beb274c094
3 changed files with 23 additions and 1 deletions

View File

@ -22,6 +22,12 @@ $ # run:
$ snack run -- <args>
```
Run the test suite with this command:
``` bash
$ ./script/test
```
## Usage
`niv` simplifies [adding](#add) and [updating](#update) dependencies in Nix

View File

@ -22,6 +22,12 @@ $ # run:
$ snack run -- <args>
```
Run the test suite with this command:
``` bash
$ ./script/test
```
## Usage
`niv` simplifies [adding](#add) and [updating](#update) dependencies in Nix

View File

@ -24,5 +24,15 @@ rec
template
);
readme-test = runCommand "README-test" {}
"diff ${../README.md} ${readme} && echo dummy > $out";
''
err() {
echo
echo -e "\e[31mERR\e[0m: README.md out of date"
echo -e "please run \e[1m./script/gen\e[0m"
echo
exit 1
}
diff ${../README.md} ${readme} && echo dummy > $out || err ;
'';
}