Permalink
Browse files

add settings for travis ci to deploy war to server on amazon ec2

  • Loading branch information...
1 parent 546eb54 commit 5367f21cfeadd14e3a972239013ff8fd44aede95 @henryyan committed Aug 18, 2012
Showing with 19 additions and 0 deletions.
  1. +1 −0 .travis.yml
  2. +18 −0 pom.xml
View
@@ -1,3 +1,4 @@
language: java
jdk:
- oraclejdk7
+install: mvn tomcat7:deploy -Ptravis-ci-aws
View
@@ -491,6 +491,24 @@
</build>
</profile>
+ <profile>
+ <id>travis-ci-aws</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.tomcat.maven</groupId>
+ <artifactId>tomcat7-maven-plugin</artifactId>
+ <version>2.0-beta-1</version>
+ <configuration>
+ <username>admin</username>
+ <password>kad-tomcat-pwd</password>
+ <url>http://aws.kafeitu.me:8080/manager</url>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
<!-- 刷新开发环境数据库 -->
<profile>
<id>refresh-db</id>

0 comments on commit 5367f21

Please sign in to comment.