Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
##################################################
#
# Environment
#
##################################################
language: groovy
jdk:
- openjdk8
os:
- linux


##################################################
#
# CACHE
#
##################################################
before_cache:
- echo "################################################## START CACHE"
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand All @@ -13,16 +25,29 @@ cache:
- "$HOME/.gradle/wrapper/"
after_cache:
- echo "################################################## FINISH CACHE"



##################################################
#
# SCRIPT
#
##################################################
script:
- gradle clean build
- ./gradlew clean build
- export RELEASE_PKG_FILE=$(ls build/distributions/*.zip)
- echo "# Zip File => $RELEASE_PKG_FILE"


##################################################
#
# DEPLOY
#
##################################################
before_deploy:
- export RELEASE_PKG_FILE=$(ls build/distributions/*.zip)
- echo "################################################## START DEPLOY "
- echo "# Deploying $RELEASE_PKG_FILE to GitHsub releases"

deploy:
provider: releases
api_key:
Expand All @@ -34,10 +59,10 @@ deploy:
tags: true
repo: avaj-java/installer-maker
all_branches: true

after_deploy:
- echo "################################################## FINISH DEPLOY"




after_success:
- ./gradlew jacocoTestReport coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/avaj-java/installer-maker.svg?branch=master)](https://travis-ci.org/avaj-java/installer-maker)
[![Coverage Status](https://coveralls.io/repos/github/avaj-java/installer-maker/badge.svg)](https://coveralls.io/github/avaj-java/installer-maker)
[![All Download](https://img.shields.io/github/downloads/avaj-java/installer-maker/total.svg)](https://github.com/avaj-java/installer-maker/releases)
[![Release](https://img.shields.io/github/release/avaj-java/installer-maker.svg)](https://github.com/avaj-java/installer-maker/releases)
[![License](https://img.shields.io/github/license/avaj-java/installer-maker.svg)](https://github.com/avaj-java/installer-maker/releases)
Expand Down
62 changes: 60 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
group 'jaemisseo'

apply plugin: "groovy"
apply plugin: "java"
apply plugin: "application"
Expand All @@ -19,6 +21,9 @@ buildscript {
maven { url 'https://repo.spring.io/snapshot' }
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
}
}

task wrapper(type: Wrapper) {
Expand Down Expand Up @@ -51,8 +56,8 @@ sourceSets {
* Define Variable&Function
*
**************************************************/
sourceCompatibility = "1.6"
targetCompatibility = "1.6"
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6

String projectName = "installer-maker"
version = "git describe --tags".execute([], project.projectDir).text.trim()
Expand Down Expand Up @@ -170,12 +175,30 @@ jar.rootSpec.exclude( fileTree(dir: 'external_lib_dev', include: ['*.jar']).coll





/**************************************************
*
* Setup All Projects
*
**************************************************/
allprojects {
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'jacoco'

repositories {
jcenter()
}
}

/**************************************************
*
* Setup Each Sub Projects
*
**************************************************/
subprojects {
apply plugin: 'java'

/*************************
* Gethering Module's Git Info
*************************/
Expand All @@ -189,6 +212,14 @@ subprojects {

//Message to Sub Gradle
ext.setProperty('modeParentRemoteDependencies', modeRemoteDependencies)

/** jacocoTestReport to Submodules **/
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = true
}
}
}

if (modeRemoteDependencies){
Expand Down Expand Up @@ -242,6 +273,33 @@ printSubject "Check - Start Task"
* Tasks
*
**************************************************/

/*************************
*
* TASK - jacoco to report coverage
*
*************************/
// 각 서브모듈들의 JacocoReport 취합
task jacocoRootReport(type: JacocoReport) {
description = 'Generates an aggregate report from all subprojects'
dependsOn = subprojects.test
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
classDirectories = files(subprojects.sourceSets.main.output)
executionData = files(subprojects.jacocoTestReport.executionData)
reports {
html.enabled = true // human readable
xml.enabled = true // required by coveralls
}
}

/** coveralls Task로 jacocoRootReport 로 취합된 결과만 전송 **/
coveralls {
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
}



/*************************
*
* TASK - jar
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
rootProject.name = 'installer-maker'

include 'command-man', "common-util", "common-man", "fileman", "reportman", "restman"