diff options
-rw-r--r-- | .travis.yml | 5 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | check.sh | 1 | ||||
-rw-r--r-- | scripts/check.nix | 4 | ||||
-rwxr-xr-x | scripts/check.sh | 3 |
5 files changed, 11 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 8b81afc..d0550a7 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -2,8 +2,9 @@ | |||
2 | language: nix | 2 | language: nix |
3 | 3 | ||
4 | script: | 4 | script: |
5 | - nix-env -i -f default.nix -A latest | 5 | - nix-build --no-out-link scripts/check.nix |
6 | - ./check.sh . | 6 | - nix-env -i -f default.nix -A latest |
7 | - ./scripts/check.sh . | ||
7 | 8 | ||
8 | notifications: | 9 | notifications: |
9 | slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB | 10 | slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB |
@@ -16,4 +16,4 @@ Once you've done that, add a `mkOlderVersion` for the previous latest version. O | |||
16 | 16 | ||
17 | Then, run `nix build`. It will give you the correct values for the hashes. Correct those, run it again and you'll see `result-` directories, one per version. Go ahead and make sure they all work. | 17 | Then, run `nix build`. It will give you the correct values for the hashes. Correct those, run it again and you'll see `result-` directories, one per version. Go ahead and make sure they all work. |
18 | 18 | ||
19 | Finally, don't forget to update `check.sh` with the latest version number. | 19 | Finally, don't forget to update `scripts/check.sh` with the latest version number. |
diff --git a/check.sh b/check.sh deleted file mode 100755 index 92faac7..0000000 --- a/check.sh +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | [ "$(clever --version)" == "1.6.3" ] | ||
diff --git a/scripts/check.nix b/scripts/check.nix new file mode 100644 index 0000000..1a344c6 --- /dev/null +++ b/scripts/check.nix | |||
@@ -0,0 +1,4 @@ | |||
1 | with import <nixpkgs> {}; | ||
2 | |||
3 | # Check all versions | ||
4 | lib.collect lib.isDerivation (callPackage ../default.nix {}) | ||
diff --git a/scripts/check.sh b/scripts/check.sh new file mode 100755 index 0000000..ffef74b --- /dev/null +++ b/scripts/check.sh | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | [ "$(clever --version)" = "1.6.3" ] | ||