Skip to content

Commit

Permalink
#40: Prepared deploying snapshot by TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Jul 9, 2019
1 parent 713e460 commit 43def42
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 15 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ env:
matrix:
- INFLUXDB_VERSION=1.7 INFLUXDB_2_VERSION=nightly

before_install:
- |
sudo apt-get install -qq libxml2-utils
export PROJECT_VERSION=`xmllint --xpath "//*[local-name()='project']/*[local-name()='version']/text()" pom.xml`
install: true

script:
Expand All @@ -56,8 +61,8 @@ jobs:
- ./scripts/influxdb-restart.sh
- ./scripts/publish-site.sh

- stage: deploy
if: branch = master AND repo = bonitoo-io/influxdb-client-java AND type IN (push)
- stage: Deploy Snapshot
if: branch = master AND repo = bonitoo-io/influxdb-client-java AND type IN (push) AND env(PROJECT_VERSION) =~ /(.+)(-SNAPSHOT)/
jdk: openjdk8
script: skip
deploy:
Expand Down
2 changes: 1 addition & 1 deletion client-kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ The snapshots are deployed into [OSS Snapshot repository](https://oss.sonatype.o
#### Maven
```xml
<repository>
<id>oss-snapshot-repository</id>
<id>ossrh</id>
<name>OSS Snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
Expand Down
2 changes: 1 addition & 1 deletion client-legacy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ The snapshots are deployed into [OSS Snapshot repository](https://oss.sonatype.o
#### Maven
```xml
<repository>
<id>oss-snapshot-repository</id>
<id>ossrh</id>
<name>OSS Snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
Expand Down
2 changes: 1 addition & 1 deletion client-reactive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ The snapshots are deployed into [OSS Snapshot repository](https://oss.sonatype.o
#### Maven
```xml
<repository>
<id>oss-snapshot-repository</id>
<id>ossrh</id>
<name>OSS Snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
Expand Down
2 changes: 1 addition & 1 deletion client-scala/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ The snapshots are deployed into [OSS Snapshot repository](https://oss.sonatype.o
#### Maven
```xml
<repository>
<id>oss-snapshot-repository</id>
<id>ossrh</id>
<name>OSS Snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
Expand Down
2 changes: 1 addition & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ The snapshots are deployed into [OSS Snapshot repository](https://oss.sonatype.o
#### Maven
```xml
<repository>
<id>oss-snapshot-repository</id>
<id>ossrh</id>
<name>OSS Snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<name>Bonitoo.io repository</name>
<url>https://apitea.com/nexus/content/repositories/bonitoo-snapshot/</url>
<releases>
<enabled>true</enabled>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@

<distributionManagement>
<snapshotRepository>
<id>bonitoo-repository</id>
<url>https://apitea.com/nexus/content/repositories/bonitoo-snapshot/</url>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>bonitoo-repository</id>
<url>https://apitea.com/nexus/content/repositories/bonitoo-snapshot/</url>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>gp</id>
Expand Down Expand Up @@ -531,7 +531,7 @@
<name>Bonitoo.io repository</name>
<url>https://apitea.com/nexus/content/repositories/bonitoo-snapshot/</url>
<releases>
<enabled>true</enabled>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
Expand Down
5 changes: 5 additions & 0 deletions scripts/deploy-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@
<username>${env.BONITOO_SNAPSHOT_USER}</username>
<password>${env.BONITOO_SNAPSHOT_PASSWORD}</password>
</server>
<server>
<id>ossrh</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>
2 changes: 1 addition & 1 deletion spring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The snapshots are deployed into [OSS Snapshot repository](https://oss.sonatype.o
#### Maven
```xml
<repository>
<id>oss-snapshot-repository</id>
<id>ossrh</id>
<name>OSS Snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
Expand Down
2 changes: 1 addition & 1 deletion spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<name>Bonitoo.io repository</name>
<url>https://apitea.com/nexus/content/repositories/bonitoo-snapshot/</url>
<releases>
<enabled>true</enabled>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
Expand Down

0 comments on commit 43def42

Please sign in to comment.