From 53c0fe6e23594f471f2b585219ec69778fc47234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 20 Mar 2017 13:59:21 +0100 Subject: [PATCH] Fix sass compile tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- autotest-js.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autotest-js.sh b/autotest-js.sh index 1c1594a9af..5f03132ee4 100755 --- a/autotest-js.sh +++ b/autotest-js.sh @@ -24,7 +24,12 @@ mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3 # create scss test mkdir -p tests/css -cat core/css/variables.scss core/css/*.scss | ./build/bin/node-sass > tests/css/combined.css +for SCSSFILE in core/css/*.scss +do + FILE=$(basename $SCSSFILE) + FILENAME="${FILE%.*}" + printf "@import 'variables.scss'; @import '${FILE}';" | ./build/bin/node-sass --include-path core/css/ > tests/css/${FILE}.css +done KARMA="$PREFIX/node_modules/karma/bin/karma"