Skip to content

Commit

Permalink
Update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jodastephen committed Mar 22, 2017
1 parent 67e9e5c commit 45d742a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/maven-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username></username>
<password>${GITHUB_TOKEN}</password>
</server>
</servers>

</settings>
29 changes: 26 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,32 @@
# For more information, see https://travis-ci.org

sudo: false

language: java

jdk:
jdk:
- oraclejdk8
- oraclejdk7
# install
install:
- mvn --version
script:
- mvn install -e -B
# deploy
before_deploy:
- mvn site-deploy -e -B --settings .github/maven-settings.xml
- export DIST_FILE1=$(ls target/joda-time-*-dist.tar.gz)
- export DIST_FILE2=$(ls target/joda-time-*-dist.zip)
deploy:
provider: releases
api_key:
secure: S9aAxkk3ICWqC24GDZK+L6n/xK9OWh4KRWiiSJ4wN4gVoshxLWOvB6aDLMTlQwd5FffzG7RT9aqeYBOihWZWupW4/0xP00yW5WE7dKpURDB0AuOllo1Em1IBL2AlEmhepOss1tn/A/uSApe134Hg8qryOpffAYNWzgzVlYFEM+0=
file:
- "${DIST_FILE1}"
- "${DIST_FILE2}"
skip_cleanup: true
on:
jdk: "oraclejdk7"
tags: true
condition: "$TRAVIS_TAG =~ ^v.*$"
env:
global:
secure: UK9A4eHPOP6XkYbST1kpv3gVEZTBqp79eCF0nqpXejbXihY58MNVZ0aGt8IM/ZThO/UoK+AxWjaSLljE2Neo4ehxvRHsRG0bIhAoCBUjP6f6vuMYTZlRNb9W+NM3RjXvrQGnCM3PTckWaFQ6i5Ny4e1GuETSdh96Yk7WNn6DMJM=

0 comments on commit 45d742a

Please sign in to comment.