Skip to content

Commit

Permalink
Merge pull request #33 from DiceTechnology/issue/1/gpg_profile
Browse files Browse the repository at this point in the history
Wiring up deployment for travis
  • Loading branch information
gedl authored Sep 14, 2018
2 parents 3b1eff5 + 2e78c0e commit 1102470
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 42 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ script:
before_install:
- openssl aes-256-cbc -K $encrypted_9dd2761de049_key -iv $encrypted_9dd2761de049_iv
-in travis.gpg.pem.enc -out travis.gpg.pem -d
- gpg --import travis.gpg.pem
env:
global:
- secure: dT6IZw5LXNKt1d/c7XtndWcPdAwl8lyjAiO9Hh9PWNeDeDd9iax2dI6jR9YEqItbk1vXiwZuND1Wphx4PYZwi7xjms576hZSSIZDK2STiKXp7Utc/IBtK8SbqspvQQFh8EHg6e1vlf0lFCpBhq2LXUsF+SkxnwKtIQtssfDef/GS/QTx+rW/FMh+90z6vmo76bIvAZURmgHW82k0JUtO07xqg4a41gLsO3x/EgIs/VwzzoF6IFMkGSyccY9mrHA8hO6mpEXfE4UOF7SsKMFGTSXASzmmPeass+p8lgTemuPU1wkTYeMAXKR8jzJ3h+46skpQga/mITsTL/Qp9pW68d/qZ7TBHMhI940mgK4NFt6OEHfj5kNZoVkbwzLcXF7uEgH0LOQvswrvXVRr0J/Myr4W0y+72TBkDW60Z59gF8OURd6TFp5sEeFJI+y8f8CMTdiPEcK0Mb+2p48uf2jhZZNIDxZUYiz+HXJKP2VxDTaS6TeS9STpKIGyzwbrE9ZC5J2QHjmT+7+SqzsGiakqKjxg/hzbMwW+VgM+Hj44gPlV04JRDNoxfPH4TUH6Y8gBJ8zPwEi6cRfI25iAKaI7HztxZAJEVvLpK9WlunlH/TSMmrViQH7NYoxNKLWIARRpm0qWanhV7asjW2NNxkiqeSzFB2jNj/N4nMDo4l5JPIE=
- secure: C6ZJeZwi7NtZrMD+MFn809/onkLR5N0QdUNUL5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dp+ztx939YdVv94/6necuwsXKEIDfSCg5EvC1D1LVHEz0ZeS+Io/kSXuQgb4grpnar1hJAFbrLKUJ8NGtc27lq6MTOr5ZH228/1X9mlIC+GQZ5FaytdotGgvNJSwBcjlBUCDp404Re3rnDCEL8dU2aqKLkops/DdggI3fnz5cfb7V0Q6GJevy83anS9htiJ0AY19dK7pEoctIGp7vU1nOo3BrzfYdu4ITQYY2DoY6ZNd2H2W4Ze3nbrqmPD7032hfv+C/I=
cache:
directories:
- "~/.m2/repository"
after_success:
- "./cd/deploy.sh"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/IMGGaming/dice-where.svg?token=F6ktiNWbNbvGRbN5NmqA&branch=master)](https://travis-ci.com/IMGGaming/dice-where)
[![Build Status](https://travis-ci.com/DiceTechnology/dice-where.svg?token=F6ktiNWbNbvGRbN5NmqA&branch=master)](https://travis-ci.com/DiceTechnology/dice-where)

dice-where is a low memory footprint, highly efficient Geo IP lookup library that relies on locally available data.
The library pre-processes all the data from a list of databases and allows the client application to lookup one or all of them in a blocking or non-blocking way.
Expand Down
4 changes: 4 additions & 0 deletions cd/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
mvn deploy -P bintray,build-extras --settings cd/mvnsettings.xml
fi
21 changes: 21 additions & 0 deletions cd/mvnsettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<settings>
<server>
<id>bintray-dicetechnology-dice-where</id>
<username>streaming-machine-user</username>
<password>${env.BINTRAY_API_KEY}</password>
</server>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.keyname>C673D7586C1D444B</gpg.keyname>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>

95 changes: 55 additions & 40 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,44 +166,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>publish</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
Expand All @@ -216,6 +178,43 @@

<profiles>
<profile>
<id>build-extras</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>bintray</id>
<repositories>
<repository>
<snapshots>
Expand All @@ -236,7 +235,24 @@
<url>https://dl.bintray.com/dicetechnology/dice-where</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

Expand All @@ -258,7 +274,6 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
</plugin>

</plugins>
</reporting>

Expand Down

0 comments on commit 1102470

Please sign in to comment.