aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul B <paul@bonaud.fr>2020-04-02 10:12:12 +0200
committerPaul B <paul@bonaud.fr>2020-04-02 10:15:22 +0200
commitc2aea748c38c4d0649b6b00dda71523dfeca2ff0 (patch)
tree556ae7fea652ea6433699a3223d8758f4a86bc87
parent4a071edf5737373df72fab0f31e58fdde3bab94f (diff)
downloadclever-tools-nix-c2aea748c38c4d0649b6b00dda71523dfeca2ff0.tar.gz
clever-tools-nix-c2aea748c38c4d0649b6b00dda71523dfeca2ff0.tar.zst
clever-tools-nix-c2aea748c38c4d0649b6b00dda71523dfeca2ff0.zip
ci: check ALL versions during tests
-rw-r--r--.travis.yml5
-rw-r--r--README.md2
-rwxr-xr-xcheck.sh1
-rw-r--r--scripts/check.nix4
-rwxr-xr-xscripts/check.sh3
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 @@
2language: nix 2language: nix
3 3
4script: 4script:
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
8notifications: 9notifications:
9 slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB 10 slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB
diff --git a/README.md b/README.md
index 9d744f5..c4a13e7 100644
--- a/README.md
+++ b/README.md
@@ -16,4 +16,4 @@ Once you've done that, add a `mkOlderVersion` for the previous latest version. O
16 16
17Then, 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. 17Then, 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
19Finally, don't forget to update `check.sh` with the latest version number. 19Finally, 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 @@
1with import <nixpkgs> {};
2
3# Check all versions
4lib.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" ]