Skip to content

Commit 0b1ff5f

Browse files
committed
Updated build settings for Travis
1 parent 64fe81f commit 0b1ff5f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

travis-build.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
#!/bin/bash
22
set -ev
33

4+
saveGitCredentials() {
5+
cat >$HOME/.netrc <<EOL
6+
machine github.com
7+
login ${GITHUB_USERNAME}
8+
password ${GITHUB_TOKEN}
9+
10+
machine api.github.com
11+
login ${GITHUB_USERNAME}
12+
password ${GITHUB_TOKEN}
13+
EOL
14+
chmod 600 $HOME/.netrc
15+
}
16+
417
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ "${RELEASE}" = "true" ]; then
518
echo "Deploying release to Bintray"
19+
saveGitCredentials
620
git checkout -f ${TRAVIS_BRANCH}
721
./gradlew clean assemble release -Prelease.useAutomaticVersion=true && ./gradlew check --info
822
fi

0 commit comments

Comments
 (0)