From 9ac62d9d678d4c169adf913a5c2a4f855892009b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 16:49:57 +0800 Subject: [PATCH 01/12] 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 4ffb23f4578a1e45d96f9dd49a3d11d67d93be6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 16:59:54 +0800 Subject: [PATCH 02/12] Delete .travis.yml --- .travis.yml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e5034e9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -# Building a Java project -language: java - -# We can specify a list of JDKs to be used for testing -jdk: - - openjdk11 From d3cb43758dec90721981d87e36cac7f3afeb08cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:00:30 +0800 Subject: [PATCH 03/12] 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 650257cd6c76e7fc739de222c72fc96a940cd8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:05:46 +0800 Subject: [PATCH 04/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5787322..d16cb89 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - +[![Build Status](https://travis-ci.com/OrsonM/Travis_CI_Tutorial.svg?branch=main)](https://travis-ci.com/OrsonM/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 f855145ff8c93a21fe797e4f37da34bc5c368c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:07:09 +0800 Subject: [PATCH 05/12] Update .travis.yml --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index e5034e9..6214bde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,5 @@ language: java # We can specify a list of JDKs to be used for testing jdk: - openjdk11 +after_success: + - bash <(curl -s https://codecov.io/bash) From 2ef0cbac5605629f59bb9284f856a49e5a10af22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:08:44 +0800 Subject: [PATCH 06/12] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d16cb89..b2d70b6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.com/OrsonM/Travis_CI_Tutorial.svg?branch=main)](https://travis-ci.com/OrsonM/Travis_CI_Tutorial) +[![codecov](https://codecov.io/gh/OrsonM/Travis_CI_Tutorial/branch/main/graph/badge.svg?token=TN19KWYHEN)](https://codecov.io/gh/OrsonM/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 7c38cd66c299dad962ff890c6f813dcd3b0ad94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:18:30 +0800 Subject: [PATCH 07/12] Update .travis.yml --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6214bde..6bdaaee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,14 @@ jdk: - openjdk11 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 4ddbe938bb0bf330ddab81c161c252396b427901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:22:12 +0800 Subject: [PATCH 08/12] Update .travis.yml --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6bdaaee..beb3eaa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,3 +17,6 @@ deploy: tags: true branch: tag repo: / +notifications: + email: + - one@example.com(replace by your e-mail) From 80c86b0768e1d21a90dd5ff8a5328c454587ce66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:24:11 +0800 Subject: [PATCH 09/12] 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 1f3a8de2e48addf53bcf9410087218c11cd5899a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:30:34 +0800 Subject: [PATCH 10/12] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index beb3eaa..629b76b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,4 +19,4 @@ deploy: repo: / notifications: email: - - one@example.com(replace by your e-mail) + - 1277396839@qq.com From eaa67c3f5b8289c113143e9d615f1c0520505ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:31:09 +0800 Subject: [PATCH 11/12] 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 4551406..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) From 9929cbaf292571005deb1aaeaa5a44d95bc7cc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=BA=86=E5=A5=A5=E6=A3=AE?= <64359819+OrsonM@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:36:15 +0800 Subject: [PATCH 12/12] 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)