File tree 2 files changed +20
-4
lines changed
2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 8
8
- 5.4
9
9
- hhvm
10
10
11
+ env :
12
+ - CLOSURE_VERSION : 20161024
13
+
11
14
matrix :
12
15
allow_failures :
13
16
- php : hhvm
@@ -25,10 +28,7 @@ install:
25
28
- composer update --no-interaction --prefer-source
26
29
27
30
before_script :
28
- - wget -c https://dl.google.com/closure-compiler/compiler-latest.zip -O vendor/compiler-latest.zip
29
- - unzip -od vendor/closure-compiler vendor/compiler-latest.zip
30
- - ln -sfn ../$(echo vendor/closure-compiler/closure-compiler-*.jar) tests/compiler.jar
31
- - java -jar tests/compiler.jar --version
31
+ - tests/dl-closure.sh
32
32
33
33
script :
34
34
- composer validate
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -xe
3
+
4
+ : ${CLOSURE_VERSION:= 20161024}
5
+
6
+ wget -c https://dl.google.com/closure-compiler/compiler-$CLOSURE_VERSION .zip -O vendor/compiler-$CLOSURE_VERSION .zip
7
+ unzip -od vendor/closure-compiler vendor/compiler-$CLOSURE_VERSION .zip
8
+ ln -sfn ../vendor/closure-compiler/closure-compiler-v$CLOSURE_VERSION .jar tests/compiler.jar
9
+
10
+ # test that version matches
11
+ out=$( java -jar tests/compiler.jar --version)
12
+
13
+ version=$( echo " $out " | awk ' /Version:/{print $NF}' )
14
+ version=${version# v}
15
+
16
+ test " $version " = " $CLOSURE_VERSION "
You can’t perform that action at this time.
0 commit comments