Merge pull request #1053 from vorburger/TravisLicenseTest
Travis will now test presence of MPL license headers for each pull request it builds
This commit is contained in:
@@ -10,7 +10,7 @@ buildscript {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:1.0',
|
classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:1.0',
|
||||||
'nl.javadude.gradle.plugins:license-gradle-plugin:0.6.0',
|
'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0',
|
||||||
'org.zeroturnaround:gradle-jrebel-plugin:1.1.2'
|
'org.zeroturnaround:gradle-jrebel-plugin:1.1.2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -205,6 +205,7 @@ war {
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file('../LICENSE.md')
|
header rootProject.file('../LICENSE.md')
|
||||||
|
excludes(["**/*.mustache"])
|
||||||
strictCheck true
|
strictCheck true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
<!--
|
||||||
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
||||||
You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
|
-->
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
||||||
xmlns:jee="http://www.springframework.org/schema/jee"
|
xmlns:jee="http://www.springframework.org/schema/jee"
|
||||||
@@ -12,4 +16,4 @@
|
|||||||
<!-- name here must match TestDataSourceConfiguration -->
|
<!-- name here must match TestDataSourceConfiguration -->
|
||||||
<jee:jndi-lookup jndi-name="java:comp/env/jdbc/mifosplatform-tenants"
|
<jee:jndi-lookup jndi-name="java:comp/env/jdbc/mifosplatform-tenants"
|
||||||
id="tenantDataSourceJndi" />
|
id="tenantDataSourceJndi" />
|
||||||
</beans>
|
</beans>
|
||||||
|
|||||||
+5
@@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
package org.mifosplatform.infrastructure.configuration.spring;
|
package org.mifosplatform.infrastructure.configuration.spring;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|||||||
+5
@@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
package org.mifosplatform.infrastructure.configuration.spring;
|
package org.mifosplatform.infrastructure.configuration.spring;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|||||||
+1
-1
@@ -4,4 +4,4 @@ cd mifosng-provider
|
|||||||
# where you do not have access to any files like build/reports/tests/index.html, only the Console.
|
# where you do not have access to any files like build/reports/tests/index.html, only the Console.
|
||||||
# @see http://mrhaki.blogspot.ch/2013/05/gradle-goodness-show-more-information.html
|
# @see http://mrhaki.blogspot.ch/2013/05/gradle-goodness-show-more-information.html
|
||||||
# @see http://forums.gradle.org/gradle/topics/whats_new_in_gradle_1_1_test_logging for alternative
|
# @see http://forums.gradle.org/gradle/topics/whats_new_in_gradle_1_1_test_logging for alternative
|
||||||
./gradlew --info clean test
|
./gradlew --info clean licenseMain licenseTest licenseIntegrationTest test
|
||||||
|
|||||||
Reference in New Issue
Block a user