diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..aae9752 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +# Building a Java project +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) + +deploy: + provider: releases + file_glob: true + skip_cleanup: true + api_key: $GITHUB_TOKEN + file: + - .travis.yml + on: + tags: true + branch: tag + repo: / + +notifications: + email: + - 1301760650@qq.com + diff --git a/README.md b/README.md index 54f4dc0..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. 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..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 @@ -116,4 +116,4 @@ private static int getN () return (inputInt); } // end getN -} // end trityp class \ No newline at end of file +} // end trityp class