aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check.sh')
-rwxr-xr-xscripts/check.sh38
1 files changed, 9 insertions, 29 deletions
diff --git a/scripts/check.sh b/scripts/check.sh
index 9f40c99..aa21f1e 100755
--- a/scripts/check.sh
+++ b/scripts/check.sh
@@ -1,38 +1,18 @@
#! /usr/bin/env sh
+git_root="$(git rev-parse --show-toplevel)"
+
fmt_check() {
echo ".#checks.x86_64-linux.$1"
}
-check() {
- tests="$(fmt_check "$1")"
- shift 1
-
- for test in "$@"; do
- tests="$tests $(fmt_check "$test")"
- done
-
- set -x
- # We want to expand `$tests`.
- # shellcheck disable=SC2086
+nix eval \
+ --file "$git_root/scripts/check_get_tests.nix" \
+ --raw | while read -r test; do
+ echo "Building test '$test'..."
+ test="$(fmt_check "$test")"
nix build \
--option max-jobs 1 \
--print-out-paths --no-link \
- $tests
-}
-
-check atuin-sync \
- back \
- deploy-activate \
- deploy-schema \
- dns \
- formatting \
- git-server \
- rocie \
- rust-motd \
- sharkey \
- sharkey-cpu \
- taskchampion-sync
-# email-dns \
-# email-http \
-# email-ip \
+ "$test"
+done