diff --git a/.travis.yml b/.travis.yml index 51cc3c6..b971d90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,33 @@ -language: JAVA +language: java + +install: true + +before_deploy: +- echo $projectversion +- mvn package +- git config --global user.email "builds@travis-ci.com" +- git config --global user.name "Travis CI" +- export GIT_TAG=$projectversion-B$TRAVIS_BUILD_NUMBER +- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER" +- git push -q https://$GITPERM@github.com/mob41/KmbETA-API --tags +- ls -R + +deploy: + skip_cleanup: true + provider: releases + api_key: $GITPERM + file: + - target/KmbETA-API-$projectversion.jar + - target/KmbETA-API-$projectversion-jar-with-dependencies.jar + - target/KmbETA-API-$projectversion-javadoc.jar + - jars-instruct/README.md + on: + tags: false + all_branches: true + +branches: + only: + - master + +env: +- projectversion=0.0.1-SNAPSHOT \ No newline at end of file diff --git a/pom.xml b/pom.xml index 64b8e21..576d450 100644 --- a/pom.xml +++ b/pom.xml @@ -1,9 +1,9 @@ 4.0.0 com.mob41.kmbapi - KmbETA + KmbETA-API 0.0.1-SNAPSHOT - KmbETA + KmbETA-API A API client getting ETA from KMB buses. @@ -12,4 +12,43 @@ 20160212 + + + + maven-surefire-plugin + 2.10 + + false + + + + maven-assembly-plugin + + + package + + single + + + + + + jar-with-dependencies + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + \ No newline at end of file