Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Commit

Permalink
update travis.yml and pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
a1aw committed Mar 29, 2016
1 parent d3428dc commit 2ac5778
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 3 deletions.
34 changes: 33 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
language: JAVA
language: java

install: true

before_deploy:
- echo $projectversion
- mvn package
- git config --global user.email "[email protected]"
- 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://[email protected]/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
43 changes: 41 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mob41.kmbapi</groupId>
<artifactId>KmbETA</artifactId>
<artifactId>KmbETA-API</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>KmbETA</name>
<name>KmbETA-API</name>
<description>A API client getting ETA from KMB buses.</description>
<dependencies>
<dependency>
Expand All @@ -12,4 +12,43 @@
<version>20160212</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<useFile>false</useFile>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</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>
</plugins>
</build>
</project>

0 comments on commit 2ac5778

Please sign in to comment.