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:
parent
47cd53f704
commit
beb274c094
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 ;
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user