File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -3,11 +3,27 @@ set -ev
33echo " current git hash:"
44git 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+
622if [ " ${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
1026else
11- echo " Building branch "
27+ echo " Building and verifying "
1228 mvn -B clean verify
1329fi
You can’t perform that action at this time.
0 commit comments