diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-03-20 13:59:21 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-03-20 14:12:45 +0100 |
commit | 53c0fe6e23594f471f2b585219ec69778fc47234 (patch) | |
tree | c42794dc1bd7608751478d230bd8fa50e4aa88d0 /autotest-js.sh | |
parent | 29ec58f1b5099e49539a85f734a6c8192ce295b4 (diff) | |
download | nextcloud-server-53c0fe6e23594f471f2b585219ec69778fc47234.tar.gz nextcloud-server-53c0fe6e23594f471f2b585219ec69778fc47234.zip |
Fix sass compile tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'autotest-js.sh')
-rwxr-xr-x | autotest-js.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autotest-js.sh b/autotest-js.sh index 1c1594a9af3..5f03132ee42 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" |