Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (17 sloc) 498 Bytes
#!/bin/sh
set -e
cat > src/main/resources/oauth.properties << EOF
clientId=${LGTMIN_CLIENT_ID}
clientSecret=${LGTM_SECRET}
EOF
if [ "$TRAVIS_PULL_REQUEST" = false ]; then
if [ "$TRAVIS_BRANCH" = "master" ]; then
# gradle clean check && gradle appengineUpdateAll
cat .appcfg_oauth2_tokens_java | sed -e "s/rahul/$(whoami)/g" > $HOME/.appcfg_oauth2_tokens_java
./gradlew clean test && ./gradlew appengineUpdateAll
else
./gradlew clean check
fi
else
./gradlew clean check
fi