From bd1cc1b67e44b510af9fa7424d1c7497feef73bc Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:34:15 +0800 Subject: [PATCH 01/14] Create .travis.yml --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e5034e9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +# Building a Java project +language: java + +# We can specify a list of JDKs to be used for testing +jdk: + - openjdk11 From a445c6e3cc90f106e44030cc93f0beaad1b0ec2c Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:36:37 +0800 Subject: [PATCH 02/14] Update .travis.yml --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index e5034e9..37b4979 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,7 @@ language: java # We can specify a list of JDKs to be used for testing + + jdk: - openjdk11 From 84dea2891fa1a69bd77b1ed0344faecf444ebf01 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:40:46 +0800 Subject: [PATCH 03/14] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 37b4979..36800fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,5 +4,6 @@ language: java # We can specify a list of JDKs to be used for testing + jdk: - openjdk11 From 0d973f9eaa214e2cd3445ab3902e5d119098f976 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:43:14 +0800 Subject: [PATCH 04/14] Update trityp.java --- .../java/io/github/kreattang/travis_ci_tutorial/trityp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java b/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java index bd3ef16..faea2d7 100644 --- a/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java +++ b/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java @@ -58,7 +58,7 @@ static int Triang (int Side1, int Side2, int Side3) triOut = 0; if (Side1 == Side2) - triOut = triOut + 2; + triOut = triOut + 1; if (Side1 == Side3) triOut = triOut + 2; if (Side2 == Side3) @@ -116,4 +116,4 @@ private static int getN () return (inputInt); } // end getN -} // end trityp class \ No newline at end of file +} // end trityp class From 154c92f615e00f91cce0c3ffa661c61c0e7cdc49 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:43:24 +0800 Subject: [PATCH 05/14] Create trityp.java From 63c60d80f3600c7ca743256ac8e912423523def5 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:50:28 +0800 Subject: [PATCH 06/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54f4dc0..e41b854 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - +[![Build Status](https://travis-ci.com/operaghost/Travis_CI_Tutorial.svg?branch=main)](https://travis-ci.com/operaghost/Travis_CI_Tutorial) # How to Use Travis CI with Java on GitHub This repository is a demo of how to use [Travis CI](https://docs.travis-ci.com/) in a Java project on GitHub. From 04fdae072bbe1fe9c64d6648193e16ea3929f7f8 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:53:24 +0800 Subject: [PATCH 07/14] Update .travis.yml --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 36800fa..f7a89d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,6 @@ language: java jdk: - openjdk11 + +after_success: + - bash <(curl -s https://codecov.io/bash) From 8cce91ca0f3ad8bf81a45016948250b66226dd14 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:54:32 +0800 Subject: [PATCH 08/14] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e41b854..34871f6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.com/operaghost/Travis_CI_Tutorial.svg?branch=main)](https://travis-ci.com/operaghost/Travis_CI_Tutorial) +[![codecov](https://codecov.io/gh/operaghost/Travis_CI_Tutorial/branch/main/graph/badge.svg?token=OHISWZW1HP)](https://codecov.io/gh/operaghost/Travis_CI_Tutorial) # How to Use Travis CI with Java on GitHub This repository is a demo of how to use [Travis CI](https://docs.travis-ci.com/) in a Java project on GitHub. From ccfd327f16d1f6968a0b9310ba0e5faccde6f560 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:54:47 +0800 Subject: [PATCH 09/14] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 34871f6..e41b854 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ [![Build Status](https://travis-ci.com/operaghost/Travis_CI_Tutorial.svg?branch=main)](https://travis-ci.com/operaghost/Travis_CI_Tutorial) -[![codecov](https://codecov.io/gh/operaghost/Travis_CI_Tutorial/branch/main/graph/badge.svg?token=OHISWZW1HP)](https://codecov.io/gh/operaghost/Travis_CI_Tutorial) # How to Use Travis CI with Java on GitHub This repository is a demo of how to use [Travis CI](https://docs.travis-ci.com/) in a Java project on GitHub. From 9b394d7ae61120cccfd51f54255847c424fdc486 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:56:26 +0800 Subject: [PATCH 10/14] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e41b854..34871f6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.com/operaghost/Travis_CI_Tutorial.svg?branch=main)](https://travis-ci.com/operaghost/Travis_CI_Tutorial) +[![codecov](https://codecov.io/gh/operaghost/Travis_CI_Tutorial/branch/main/graph/badge.svg?token=OHISWZW1HP)](https://codecov.io/gh/operaghost/Travis_CI_Tutorial) # How to Use Travis CI with Java on GitHub This repository is a demo of how to use [Travis CI](https://docs.travis-ci.com/) in a Java project on GitHub. From a34921bc2e16c7b94d5744336950a9986be6aecb Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:07:15 +0800 Subject: [PATCH 11/14] Update .travis.yml --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index f7a89d8..b443120 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,16 @@ jdk: after_success: - bash <(curl -s https://codecov.io/bash) + +deploy: + provider: releases + file_glob: true + skip_cleanup: true + api_key: $GITHUB_TOKEN + file: + - .travis.yml + on: + tags: true + branch: tag + repo: / + From dbf77fca07d22afc9bbd8b2082488b266d5c3665 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:10:22 +0800 Subject: [PATCH 12/14] Update .travis.yml --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index b443120..14ecaf8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,3 +23,7 @@ deploy: branch: tag repo: / +notifications: + email: + - one@example.com(replace by your e-mail) + From 4358abe200e1a2141458e668826275968299bcd6 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:10:54 +0800 Subject: [PATCH 13/14] Update trityp.java --- .../java/io/github/kreattang/travis_ci_tutorial/trityp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java b/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java index faea2d7..4551406 100644 --- a/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java +++ b/src/main/java/io/github/kreattang/travis_ci_tutorial/trityp.java @@ -58,7 +58,7 @@ static int Triang (int Side1, int Side2, int Side3) triOut = 0; if (Side1 == Side2) - triOut = triOut + 1; + triOut = triOut + 2; if (Side1 == Side3) triOut = triOut + 2; if (Side2 == Side3) From 73c163c409c84932cae33e8934ec5b38285dc611 Mon Sep 17 00:00:00 2001 From: operaghost <54900065+operaghost@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:12:06 +0800 Subject: [PATCH 14/14] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 14ecaf8..aae9752 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,5 +25,5 @@ deploy: notifications: email: - - one@example.com(replace by your e-mail) + - 1301760650@qq.com