mirror of
https://github.com/mrclay/minify.git
synced 2025-08-29 08:40:11 +02:00
closure: use specific version
using latest may break our tests as minified result may differ
This commit is contained in:
16
tests/dl-closure.sh
Executable file
16
tests/dl-closure.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -xe
|
||||
|
||||
: ${CLOSURE_VERSION:=20160822}
|
||||
|
||||
wget -c https://dl.google.com/closure-compiler/compiler-$CLOSURE_VERSION.zip -O vendor/compiler-$CLOSURE_VERSION.zip
|
||||
unzip -od vendor/closure-compiler vendor/compiler-$CLOSURE_VERSION.zip
|
||||
ln -sfn ../vendor/closure-compiler/closure-compiler-v$CLOSURE_VERSION.jar tests/compiler.jar
|
||||
|
||||
# test that version matches
|
||||
out=$(java -jar tests/compiler.jar --version)
|
||||
|
||||
version=$(echo "$out" | awk '/Version:/{print $NF}')
|
||||
version=${version#v}
|
||||
|
||||
test "$version" = "$CLOSURE_VERSION"
|
Reference in New Issue
Block a user