File tree 5 files changed +14
-5
lines changed
5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 17
17
- oraclejdk8
18
18
addons :
19
19
apt :
20
+ sources :
21
+ # Grab shellcheck from the Debian repo.
22
+ # https://github.com/koalaman/shellcheck/wiki/TravisCI
23
+ - debian-sid
20
24
packages :
21
25
- expect
26
+ - shellcheck
22
27
before_install :
23
28
- openssl aes-256-cbc -K $encrypted_d17a6ce39290_key -iv $encrypted_d17a6ce39290_iv
24
29
-in gae-firebase-secrets.json.enc -out appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/gae-firebase-secrets.json
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
16
16
SRC_DIR=$( cd " $( dirname " $0 " ) /.." ; pwd)
17
- java -cp ${SRC_DIR} /target/grpc-sample-1.0-jar-with-dependencies.jar \
17
+ java -cp " ${SRC_DIR} /target/grpc-sample-1.0-jar-with-dependencies.jar" \
18
18
com.examples.cloud.speech.AsyncRecognizeClient " $@ "
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
16
16
SRC_DIR=$( cd " $( dirname " $0 " ) /.." ; pwd)
17
- java -cp ${SRC_DIR} /target/grpc-sample-1.0-jar-with-dependencies.jar \
17
+ java -cp " ${SRC_DIR} /target/grpc-sample-1.0-jar-with-dependencies.jar" \
18
18
com.examples.cloud.speech.StreamingRecognizeClient " $@ "
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
16
16
SRC_DIR=$( cd " $( dirname " $0 " ) /.." ; pwd)
17
- java -cp ${SRC_DIR} /target/grpc-sample-1.0-jar-with-dependencies.jar \
17
+ java -cp " ${SRC_DIR} /target/grpc-sample-1.0-jar-with-dependencies.jar" \
18
18
com.examples.cloud.speech.SyncRecognizeClient " $@ "
Original file line number Diff line number Diff line change @@ -17,9 +17,10 @@ set -e
17
17
set -x
18
18
# Set pipefail so that `egrep` does not eat the exit code.
19
19
set -o pipefail
20
+ shopt -s globstar
20
21
21
22
SKIP_TESTS=false
22
- if [ -z " $GOOGLE_APPLICATION_CREDENTIALS " ] ; then
23
+ if [ -z " $GOOGLE_APPLICATION_CREDENTIALS " ] ; then
23
24
SKIP_TESTS=true
24
25
fi
25
26
mvn --batch-mode clean verify -DskipTests=$SKIP_TESTS | egrep -v " (^\[INFO\] Download|^\[INFO\].*skipping)"
@@ -32,7 +33,10 @@ devserver_tests=(
32
33
appengine/datastore/indexes-exploding
33
34
appengine/datastore/indexes-perfect
34
35
)
35
- for testdir in ${devserver_tests[@]} ; do
36
+ for testdir in " ${devserver_tests[@]} " ; do
36
37
./java-repo-tools/scripts/test-localhost.sh appengine " ${testdir} "
37
38
done
38
39
40
+ # Check that all shell scripts in this repo (including this one) pass the
41
+ # Shell Check linter.
42
+ shellcheck ./** /* .sh
You can’t perform that action at this time.
0 commit comments