diff --git a/.gitignore b/.gitignore index beb988d..26507af 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,48 @@ # vs code .vscode/ +.classpath +.project +.settings # mac .DS_Store + + +##################### maven +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +# https://github.com/takari/maven-wrapper#usage-without-binary-jar +.mvn/wrapper/maven-wrapper.jar + +###################### java +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* diff --git a/.travis.yml b/.travis.yml index f5e0908..61c8e73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,24 @@ -language: go - +# jobs: +# include: +# - language: go +# go: +# - "1.12.x" +# - "1.13.x" +# go_import_path: leetcode +# install: +# - go get -t -v ./... +# script: +# - go test ./... -race -coverprofile=coverage.txt -covermode=atomic +# after_success: +# - bash <(curl -s https://codecov.io/bash) +# branches: +# only: +# - master +language: generic go: - "1.12.x" - + - "1.13.x" go_import_path: leetcode - install: - go get -t -v ./... diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..a46e928 --- /dev/null +++ b/pom.xml @@ -0,0 +1,75 @@ + + + + 4.0.0 + + com.leetcode + leetcode + 0.1.1 + + leetcode + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + junit + junit + 4.11 + test + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + + diff --git a/src/main/java/com/leetcode/App.java b/src/main/java/com/leetcode/App.java new file mode 100644 index 0000000..790c7b5 --- /dev/null +++ b/src/main/java/com/leetcode/App.java @@ -0,0 +1,13 @@ +package com.leetcode; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/test/java/com/leetcode/AppTest.java b/src/test/java/com/leetcode/AppTest.java new file mode 100644 index 0000000..c84c9df --- /dev/null +++ b/src/test/java/com/leetcode/AppTest.java @@ -0,0 +1,20 @@ +package com.leetcode; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +}