Skip to content

Commit

Permalink
Travis info
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Oct 2, 2018
1 parent dc3a3f6 commit 97c560e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.deploy.artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')
if [[ "$PROJECT_VERSION" =~ .*SNAPSHOT ]] && [[ "${TRAVIS_BRANCH}" =~ ^master$|^[0-9]+\.[0-9]+$ ]] && [[ "${TRAVIS_PULL_REQUEST}" = "false" ]];
then
mvn deploy -s .travis.maven.settings.xml -DskipTests -B;
fi
17 changes: 17 additions & 0 deletions .travis.maven.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<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
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<interactiveMode>false</interactiveMode>

<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.SONATYPE_NEXUS_USERNAME}</username>
<password>${env.SONATYPE_NEXUS_PASSWORD}</password>
</server>
</servers>

</settings>

25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: java
branches:
only:
- master
- /^\d+\.\d+$/
jobs:
include:
- stage: test
name: "OracleJDK 8"
jdk: oraclejdk8
script: mvn -q clean verify -B
- if: type != pull_request
name: "OpenJDK 11"
jdk: openjdk11
script: mvn -q clean verify -B
- stage: deploy
name: "Deploy to Sonatype's snapshots repository"
if: type != pull_request
script: bash .travis.deploy.artifacts.sh
notifications:
email:
recipients:
- vertx3-ci@googlegroups.com
on_success: always
on_failure: always
2 changes: 2 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
= Vert.x for Kotlin

image:https://travis-ci.org/vert-x3/vertx-lang-kotlin.svg?branch=master["Build Status",link="https://travis-ci.org/vert-x3/vertx-lang-kotlin"]

http://kotlinlang.org[Kotlin] language support for vert.x3

* http://vertx.io/docs[Documentation]
Expand Down

0 comments on commit 97c560e

Please sign in to comment.