Skip to content

Commit 5e63580

Browse files
committed
Update travis build configuration
1 parent 85bf9b2 commit 5e63580

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GraphQL Java Tools
22

3-
[![TravisCI Build](https://travis-ci.org/graphql-java/graphql-java-tools.svg?branch=master)](https://travis-ci.org/graphql-java/graphql-java-tools)
3+
[![TravisCI Build](https://travis-ci.org/graphql-java-kickstart/graphql-java-tools.svg?branch=master)](https://travis-ci.org/graphql-java-kickstart/graphql-java-tools)
44
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.graphql-java/graphql-java-tools/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.graphql-java/graphql-java-tools)
55
[![Chat on Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/graphql-java/graphql-java)
66

travis-build.sh

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,27 @@ set -ev
33
echo "current git hash:"
44
git rev-parse --short HEAD
55

6+
saveMavenSettings() {
7+
cat >$HOME/.m2/settings.xml <<EOL
8+
<?xml version='1.0' encoding='UTF-8'?>
9+
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
10+
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
11+
<servers>
12+
<server>
13+
<id>bintray</id>
14+
<username>${BINTRAY_USER}</username>
15+
<password>${BINTRAY_PASS}</password>
16+
</server>
17+
</servers>
18+
</settings>
19+
EOL
20+
}
21+
622
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ "${RELEASE}" = "true" ]; then
7-
echo "Building on master"
8-
echo ${MAVEN_SETTINGS} >> $HOME/.m2/settings.xml
23+
echo "Deploying release to Bintray"
24+
saveMavenSettings
925
mvn release:clean release:prepare release:perform -B -e -Pbintray
1026
else
11-
echo "Building branch"
27+
echo "Building and verifying"
1228
mvn -B clean verify
1329
fi

0 commit comments

Comments
 (0)