mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-11-10 08:55:31 +08:00
CI
This commit is contained in:
parent
c89d431b8d
commit
f5a38373d4
4 changed files with 18 additions and 13 deletions
22
.travis.yml
22
.travis.yml
|
@ -1,18 +1,22 @@
|
|||
language: java
|
||||
sudo: false
|
||||
script: mvn clean install -DskipTests=false -B -V
|
||||
language: java
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
script: mvn cobertura:cobertura -DskipTests=false
|
||||
|
||||
services:
|
||||
- mysql
|
||||
# - redis
|
||||
- redis
|
||||
|
||||
before_install:
|
||||
#branches:
|
||||
# only:
|
||||
# - master
|
||||
|
||||
before_script:
|
||||
- mysql -e "CREATE DATABASE rebuild10 DEFAULT CHARSET utf8 COLLATE utf8_general_ci;"
|
||||
- mysql -e "CREATE USER 'rebuild'@'127.0.0.1' IDENTIFIED BY 'rebuild'; GRANT ALL PRIVILEGES ON rebuild10.* TO 'rebuild'@'127.0.0.1'; FLUSH PRIVILEGES;"
|
||||
- mysql -D rebuild10 < .setup/mysql-init.sql
|
||||
|
||||
#script: "mvn cobertura:cobertura"
|
||||
#after_success:
|
||||
# - bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
# IN RESEARCH ...
|
||||
# codecov
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
6
pom.xml
6
pom.xml
|
@ -2,7 +2,7 @@
|
|||
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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
<groupId>com.rebuild</groupId>
|
||||
<artifactId>rebuild</artifactId>
|
||||
<packaging>war</packaging>
|
||||
|
@ -10,7 +10,7 @@
|
|||
<name>rebuild</name>
|
||||
<description>Building your system free!</description>
|
||||
<url>https://getrebuild.com/</url>
|
||||
|
||||
|
||||
<issueManagement>
|
||||
<system>GitHub</system>
|
||||
<url>https://github.com/getrebuild/rebuild/issues</url>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<skipTests>true</skipTests>
|
||||
<spring.version>4.3.21.RELEASE</spring.version>
|
||||
</properties>
|
||||
|
||||
|
||||
<build>
|
||||
<finalName>rebuild</finalName>
|
||||
<plugins>
|
||||
|
|
|
@ -129,8 +129,8 @@ public final class Application {
|
|||
* @return
|
||||
*/
|
||||
public static ApplicationContext debug() {
|
||||
debugMode = true;
|
||||
if (APPLICATION_CTX == null) {
|
||||
debugMode = true;
|
||||
LOG.info("Rebuild Booting in DEBUG mode ...");
|
||||
long at = System.currentTimeMillis();
|
||||
ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] { "application-ctx.xml" });
|
||||
|
|
|
@ -39,6 +39,7 @@ import cn.devezhao.persist4j.Entity;
|
|||
public class TestSupport {
|
||||
|
||||
static {
|
||||
// See log4j.properties
|
||||
System.setProperty("catalina.home", System.getProperty("java.io.tmpdir"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue