Skip to content

Commit

Permalink
Update Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
jodastephen committed Apr 7, 2018
1 parent 76bb063 commit c1285b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# This file enables the Travis continuous integration system, which
# automatically builds and tests joda-time for each GitHub commit or
# pull request on three separate JDKs.
#
# For more information, see https://travis-ci.org
# build does not work on Java 9 or later as Java 5 is not a valid target

sudo: false
language: java
Expand All @@ -18,9 +14,9 @@ before_cache:
install:
- mvn --version
script:
- mvn install -e -B
- mvn install site -e -B
after_success:
- if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then travis_wait 40 mvn site-deploy -e -B --settings .github/maven-settings.xml; fi
- if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then travis_wait 40 mvn clean install site-deploy -e -B --settings .github/maven-settings.xml; fi
# secure keys for GITHUB_TOKEN
env:
global:
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<!-- Build does not work on Java 9 or later as Java 5 is not a valid target -->

<modelVersion>4.0.0</modelVersion>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
Expand Down

0 comments on commit c1285b9

Please sign in to comment.