aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-23 20:17:05 -0300
committerEuAndreh <eu@euandre.org>2021-01-23 20:17:05 -0300
commit5f70a8be3401b36f108f60e81eaa241e3c1bde46 (patch)
tree95c5f86a75c8e585ca01362525a03e3a4a4a7ed5
parentmv scripts/* build-aux/ (diff)
downloadeuandre.org-5f70a8be3401b36f108f60e81eaa241e3c1bde46.tar.gz
euandre.org-5f70a8be3401b36f108f60e81eaa241e3c1bde46.tar.xz
Move tests.sh into Makefile
Diffstat (limited to '')
-rw-r--r--Makefile5
-rw-r--r--default.nix2
-rwxr-xr-xtests.sh7
3 files changed, 5 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 338bfee..e1f7ca8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
.PHONY: check
check:
- sh tests.sh
+ sh build-aux/assert-spelling.sh
+ sh build-aux/assert-shellcheck.sh
+ sh build-aux/assert-todos.sh
+ sh build-aux/sync-translations.sh
.PHONY: clean
clean:
diff --git a/default.nix b/default.nix
index 6a82621..2655a59 100644
--- a/default.nix
+++ b/default.nix
@@ -59,7 +59,7 @@ in rec {
'';
test = drv "test" ''
export JEKYLL_ENV=production
- ./tests.sh
+ make check
touch $out
'';
shell = pkgs.mkShell {
diff --git a/tests.sh b/tests.sh
deleted file mode 100755
index 298fef9..0000000
--- a/tests.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-set -eux
-
-sh build-aux/assert-spelling.sh
-sh build-aux/assert-shellcheck.sh
-sh build-aux/assert-todos.sh
-sh build-aux/sync-translations.sh