diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..66de0b1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: groovy +jdk: oraclejdk7 +script: +- ./grailsw refresh-dependencies +- ./grailsw "test-app -coverage -xml" +after_success: +- ./grailsw coveralls diff --git a/grails-app/conf/BuildConfig.groovy b/grails-app/conf/BuildConfig.groovy index 1e3cde4..de39289 100644 --- a/grails-app/conf/BuildConfig.groovy +++ b/grails-app/conf/BuildConfig.groovy @@ -21,18 +21,24 @@ grails.project.dependency.resolution = { mavenCentral() } dependencies { + // Latest httpcore and httpmime for Coveralls plugin + build 'org.apache.httpcomponents:httpcore:4.3.2' + build 'org.apache.httpcomponents:httpclient:4.3.2' + build 'org.apache.httpcomponents:httpmime:4.3.3' + // Latest HttpBuilder compile('org.codehaus.groovy.modules.http-builder:http-builder:0.7') { excludes 'commons-logging', 'xml-apis', 'groovy' } } plugins { - //build ':tomcat:7.0.52.1' - build(":release:3.0.1", - ":rest-client-builder:1.0.3") { + build(':release:3.0.1', + ':rest-client-builder:1.0.3', + ':coveralls:0.1') { + export = false + } + test(':code-coverage:1.2.7') { export = false } - - //runtime ':console:1.3' } }