Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maven icon and improve travis site and maven deploy #120

Merged
merged 2 commits into from
Jul 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ branches:
only:
- master
after_success:
- mvn cobertura:cobertura coveralls:report
- mvn site-deploy -DskipTests=true --settings=target/travis/settings.xml
- mvn deploy -DskipTests=true -Dgpg.skip=true --settings target/travis/settings.xml
- utilities/after_success.sh
env:
global:
- secure: "bjyc4GJSP9850m6KSO2LiGKMJI/iFJ6dIDNrrZJHiokWUv8ID5+X7O04YtAFF+WrYyVDJ8Zs+uduAJaQ5NFesnhFjMMNTOaliYIBjpBgdZU0vgmsU0NzO35bu6wA5DAdI8AGUNCVwSZpOAMnj/80dbYbyFwBn2DWBZ3QwpV6J/I="
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Java idiomatic client for [Google Cloud Platform][cloud-platform] services.

[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master)
[![Maven](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java.svg)]( https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java.svg)

- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
- [API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs)
Expand Down
1 change: 0 additions & 1 deletion gcloud-java-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<artifactId>gcloud-java-core</artifactId>
<packaging>jar</packaging>
<name>GCloud Java core</name>
<url>https://github.com/GoogleCloudPlatform/gcloud-java</url>
<description>
Core module for the gcloud-java.
</description>
Expand Down
1 change: 0 additions & 1 deletion gcloud-java-datastore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<artifactId>gcloud-java-datastore</artifactId>
<packaging>jar</packaging>
<name>GCloud Java datastore</name>
<url>https://github.com/GoogleCloudPlatform/gcloud-java</url>
<description>
Java idiomatic client for Google Cloud Datastore.
</description>
Expand Down
1 change: 0 additions & 1 deletion gcloud-java-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<artifactId>gcloud-java-examples</artifactId>
<packaging>jar</packaging>
<name>GCloud Java examples</name>
<url>https://github.com/GoogleCloudPlatform/gcloud-java</url>
<description>
Examples for gcloud-java.
</description>
Expand Down
1 change: 0 additions & 1 deletion gcloud-java-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<artifactId>gcloud-java-storage</artifactId>
<packaging>jar</packaging>
<name>GCloud Java storage</name>
<url>https://github.com/GoogleCloudPlatform/gcloud-java</url>
<description>
Java idiomatic client for Google Cloud Storage.
</description>
Expand Down
1 change: 0 additions & 1 deletion gcloud-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<artifactId>gcloud-java</artifactId>
<packaging>jar</packaging>
<name>GCloud Java</name>
<url>https://github.com/GoogleCloudPlatform/gcloud-java</url>
<description>
Java idiomatic client for Google Cloud Platform services.
</description>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<site>
<id>github-pages-site</id>
<name>Deployment through GitHub's site deployment plugin</name>
<url>http://googlecloudplatform.github.io/gcloud-java/</url>
<url>site/${project.version}/</url>
</site>
</distributionManagement>
<licenses>
Expand Down
15 changes: 15 additions & 0 deletions utilities/after_success.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# This script is used by Travis-CI to publish artifacts (binary, sorce and javadoc jars) when releasing snapshots.
# This script is referenced in .travis.yml.

echo "Travis branch: " ${TRAVIS_BRANCH}
echo "Travis pull request: " ${TRAVIS_PULL_REQUEST}
echo "Travis JDK version: " ${TRAVIS_JDK_VERSION}
if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; then
mvn cobertura:cobertura coveralls:report
mvn site-deploy -DskipTests=true --settings=target/travis/settings.xml
mvn deploy -DskipTests=true -Dgpg.skip=true --settings target/travis/settings.xml

This comment was marked as spam.

This comment was marked as spam.

else
echo "Not deploying artifacts. This is only done with non-pull-request commits to master branch with Oracle Java 7 builds."
fi