Skip to content

Develop #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f493a03
changed 1.8 to 1.7
drlehr Apr 12, 2017
39549e4
changed text for time
drlehr Apr 12, 2017
3188638
Added .travis.yml with java
drlehr Apr 12, 2017
a0aed75
Changes for Fall class to test TCI
drlehr Oct 25, 2017
4b0bf65
Testing out code coverage on TCI
drlehr Oct 25, 2017
2ad2be6
Comments and Used @BeforeAll
drlehr Oct 25, 2017
af54cf5
Fall InClass Intro Demo
drlehr Oct 25, 2017
9f0106f
Change to Demo Failure
drlehr Oct 25, 2017
d7eba02
Demo to class
drlehr Feb 28, 2018
3ecb218
touching file
drlehr Oct 24, 2018
0c1619b
minor changes
drlehr Oct 24, 2018
15d248f
Testing a sync and push
drlehr Oct 24, 2018
1c16bd0
changed 1.8 to 1.7
drlehr Apr 12, 2017
951d80f
updating build files
drlehr Oct 24, 2018
5dfb1c5
Merge branch 'master' into develop
drlehr Oct 24, 2018
bdd09f2
Update gradle/wrapper/gradle-wrapper.properties
drlehr Oct 24, 2018
63db982
Merge branch 'develop' of https://github.com/drlehr/java-hello-world-…
drlehr Oct 24, 2018
4e8298e
Update build.gradle
drlehr Oct 24, 2018
305058b
Update build.gradle
drlehr Oct 24, 2018
a051bd8
Removed testhello test directory and files
drlehr Oct 24, 2018
4f769ed
Replace junit4 imports with junit5 imports
drlehr Oct 24, 2018
10f978e
Update src/test/java/hello/TestGreeter.java
drlehr Oct 25, 2018
00b6583
removed wrapper
drlehr Oct 25, 2018
a98cfc8
change gradle from 9.1 to 10.2
drlehr Oct 25, 2018
27cb64a
Updated from 4.9.1 to 4.10.2
drlehr Oct 25, 2018
2efa1f6
Merge branch 'develop' of https://github.com/drlehr/java-hello-world-…
drlehr Oct 25, 2018
ab15fd5
Changed Hello to Bark
drlehr Oct 25, 2018
694dcb5
adding deploy script
drlehr Oct 25, 2018
27b82ad
Changed test back to Hello!
drlehr Oct 25, 2018
ea20004
Merge branch 'develop' of https://github.com/drlehr/java-hello-world-…
drlehr Oct 25, 2018
39d20fd
Class demo, I hope it works
drlehr Oct 25, 2018
115ace8
Demo to 2nd class; hope it works
drlehr Oct 25, 2018
c961970
Just making the code pretty
drlehr Oct 30, 2018
342253e
Just making it pretty again
drlehr Oct 30, 2018
be69edc
added a comment
drlehr Oct 30, 2018
066d53d
added more text to comment
drlehr Oct 31, 2018
ed415de
precommit for class demo
drlehr Jan 29, 2019
7a41d20
Update HelloWorld.java
drlehr Jan 29, 2019
423f859
Added yet another comment
drlehr Jan 29, 2019
b73cec0
another test of commits and staging area behavior
drlehr Jan 31, 2019
0db2c5d
yet more comment
drlehr Jan 31, 2019
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
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
language: java

script: ./gradlew build

deploy:
provider: releases
api_key: "GITHUB OAUTH TOKEN"
file: "FILE TO UPLOAD"
skip_cleanup: true
on:
tags: true
39 changes: 36 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,39 @@ dependencies {
}
*/

// The Java plugin adds Java compilation along with testing and bundling capabilities to a project
apply plugin: 'java'
// The Eclipse plugins generate files used by Eclipse, making it possible to import project into Eclipse.
apply plugin: 'eclipse'
//The Application plugin facilitates creating an executable JVM application.
apply plugin: 'application'


sourceSets {
main {
java { srcDir 'src' }
resources { srcDir 'src' }
}

test {
resources { srcDir 'test' }
}
}

// mainClassName = 'package.mainClassName'
mainClassName = 'hello.HelloWorld'

// tag::repositories[]
// Usually, a Java project will have some dependencies on external JAR files. Gradle searches here for them
repositories {
mavenCentral()
jcenter()
}
// end::repositories[]

// tag::jar[]
jar {
baseName = 'jb-hello-world'
baseName = 'dl-hello-world'
version = '0.1.0'
}
// end::jar[]
Expand All @@ -54,14 +72,29 @@ jar {
sourceCompatibility = 1.7
targetCompatibility = 1.7

// joda-time provides the time stamping used in HelloWorld.java
// junit is to run the TestGreeter.java and others
dependencies {
compile "joda-time:joda-time:2.2"
testCompile "junit:junit:4.12"
compile "org.junit.jupiter:junit-jupiter-api:5.0.1"
testCompile "org.junit.jupiter:junit-jupiter-api:5.0.1"

testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.1.0'
)
testRuntimeOnly(
'org.junit.jupiter:junit-jupiter-engine:5.1.0',
'org.junit.vintage:junit-vintage-engine:5.1.0'
)
}
// end::dependencies[]

test {
useJUnitPlatform()
}

// tag::wrapper[]
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
gradleVersion = '4.10.2'
}
// end::wrapper[]
Binary file added build/classes/java/main/hello/Greeter.class
Binary file not shown.
Binary file added build/classes/java/main/hello/HelloWorld.class
Binary file not shown.
Binary file added build/classes/java/main/hello/TestGreeter.class
Binary file not shown.
Binary file added build/classes/java/test/hello/TestGreeter.class
Binary file not shown.
Binary file added build/distributions/HelloWorld.tar
Binary file not shown.
Binary file added build/distributions/HelloWorld.zip
Binary file not shown.
Binary file added build/libs/dl-hello-world-0.1.0.jar
Binary file not shown.
101 changes: 101 additions & 0 deletions build/reports/tests/test/classes/hello.TestGreeter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - TestGreeter</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>TestGreeter</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/hello.html">hello</a> &gt; TestGreeter</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">2</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.020s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">testGreeter()</td>
<td class="success">0.019s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testGreeterEmpty()</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 4.10.2</a> at Nov 20, 2018, 9:14:36 AM</p>
</div>
</div>
</body>
</html>
179 changes: 179 additions & 0 deletions build/reports/tests/test/css/base-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@

body {
margin: 0;
padding: 0;
font-family: sans-serif;
font-size: 12pt;
}

body, a, a:visited {
color: #303030;
}

#content {
padding-left: 50px;
padding-right: 50px;
padding-top: 30px;
padding-bottom: 30px;
}

#content h1 {
font-size: 160%;
margin-bottom: 10px;
}

#footer {
margin-top: 100px;
font-size: 80%;
white-space: nowrap;
}

#footer, #footer a {
color: #a0a0a0;
}

#line-wrapping-toggle {
vertical-align: middle;
}

#label-for-line-wrapping-toggle {
vertical-align: middle;
}

ul {
margin-left: 0;
}

h1, h2, h3 {
white-space: nowrap;
}

h2 {
font-size: 120%;
}

ul.tabLinks {
padding-left: 0;
padding-top: 10px;
padding-bottom: 10px;
overflow: auto;
min-width: 800px;
width: auto !important;
width: 800px;
}

ul.tabLinks li {
float: left;
height: 100%;
list-style: none;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
padding-bottom: 5px;
margin-bottom: 0;
-moz-border-radius: 7px;
border-radius: 7px;
margin-right: 25px;
border: solid 1px #d4d4d4;
background-color: #f0f0f0;
}

ul.tabLinks li:hover {
background-color: #fafafa;
}

ul.tabLinks li.selected {
background-color: #c5f0f5;
border-color: #c5f0f5;
}

ul.tabLinks a {
font-size: 120%;
display: block;
outline: none;
text-decoration: none;
margin: 0;
padding: 0;
}

ul.tabLinks li h2 {
margin: 0;
padding: 0;
}

div.tab {
}

div.selected {
display: block;
}

div.deselected {
display: none;
}

div.tab table {
min-width: 350px;
width: auto !important;
width: 350px;
border-collapse: collapse;
}

div.tab th, div.tab table {
border-bottom: solid #d0d0d0 1px;
}

div.tab th {
text-align: left;
white-space: nowrap;
padding-left: 6em;
}

div.tab th:first-child {
padding-left: 0;
}

div.tab td {
white-space: nowrap;
padding-left: 6em;
padding-top: 5px;
padding-bottom: 5px;
}

div.tab td:first-child {
padding-left: 0;
}

div.tab td.numeric, div.tab th.numeric {
text-align: right;
}

span.code {
display: inline-block;
margin-top: 0em;
margin-bottom: 1em;
}

span.code pre {
font-size: 11pt;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
margin: 0;
background-color: #f7f7f7;
border: solid 1px #d0d0d0;
min-width: 700px;
width: auto !important;
width: 700px;
}

span.wrapped pre {
word-wrap: break-word;
white-space: pre-wrap;
word-break: break-all;
}

label.hidden {
display: none;
}
Loading