From 718a7c0c0959d5a2a95c4ce8629bf022fa609b6d Mon Sep 17 00:00:00 2001 From: Sotr Date: Thu, 17 May 2018 20:56:15 +0800 Subject: [PATCH] Update README w/ test CircleCI --- .travis.yml | 6 +++++- README.md | 18 +++++++++++++----- circle.yml | 16 ++++++++++++++++ 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 circle.yml diff --git a/.travis.yml b/.travis.yml index 027f3f5da..52ea5086f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,19 @@ sudo: required language: java dist: trusty + jdk: - oraclejdk8 + before_install: - git config --global user.email "travis-ci@travis-ci.org" - git config --global user.name "Travis CI" + before_script: - chmod +x scripts/inst.sh script: ./scripts/inst.sh --setup + cache: directories: - '$HOME/.m2/repository' - - 'work/Paper/work/Minecraft' \ No newline at end of file + - 'work/Paper/work/Minecraft' diff --git a/README.md b/README.md index a4da55477..8858239e6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Akarin [![Minecraft](https://img.shields.io/badge/Minecraft-1.12.2-blue.svg?style=flat)](https://www.minecraft.net/) +[![Travis CI](https://travis-ci.org/Akarin-project/Akarin.svg?branch=master)](https://travis-ci.org/Akarin-project/Akarin) [![bStats](https://img.shields.io/badge/bStats-Torch-brightgreen.svg?style=flat)](https://bstats.org/plugin/bukkit/Torch) Introduction @@ -9,14 +10,21 @@ Introduction As a [Paper](https://github.com/PaperMC/Paper) fork, it supports almost plugins that [Spigot](https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/browse) can use. It has a few key goals: -* Open Access - Make more game mechanism configurable. -* Bedrock - Safety and stable is important for a server. -* Fast - Simplify the logic and import the multi-thread compute. +* **Open Access** - Make more game mechanism configurable. +* **Bedrock** - Safety and stable is important for a server. +* **Fast** - Simplify the logic and import the multi-thread compute. Akarin is **under heavy development** yet, contribution is welcome and run a test before putting into production. -Building +Get Akarin --- +### Download +#### Recommended Sites ++ [![Build Status](https://circleci.com/gh/Akarin-project/Akarin/tree/master.svg?style=svg) **Circle CI**](https://circleci.com/gh/Akarin-project/Akarin/tree/master) - Checkout the 'Artifacts' tab of the latest build *Login required* + +*Contact me via the email below or open an [Issue](https://github.com/Akarin-project/akarin/issues) if you want to add your website here* + +### Building #### Requirements * Java (JDK) 8 or above * Maven @@ -31,7 +39,7 @@ Demonstration servers --- + **demo.akarin.io** -*Contact me via the email below if you want to add your server here* +*Contact me via the email below or open an [Issue](https://github.com/Akarin-project/akarin/issues) if you want to add your server here* Contributing --- diff --git a/circle.yml b/circle.yml new file mode 100644 index 000000000..d9979f1e6 --- /dev/null +++ b/circle.yml @@ -0,0 +1,16 @@ +machine: + java: + version: openjdk8 + +dependencies: + cache-directories: + - "work/Paper/work/Minecraft" + override: + - git config --global user.email "circle@circleci.com" + - git config --global user.name "CircleCI" + - chmod +x scripts/inst.sh + - ./scripts/inst.sh --setup + +test: + post: + - yes|cp -rf ./akarin-1.12.2.jar $CIRCLE_ARTIFACTS