This commit is contained in:
devezhao 2019-01-31 17:43:10 +08:00
parent c89d431b8d
commit f5a38373d4
4 changed files with 18 additions and 13 deletions

View file

@ -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)

View file

@ -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>

View file

@ -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" });

View file

@ -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"));
}