From 734353dc8d267a11ed4edec015812c4f6e8cf612 Mon Sep 17 00:00:00 2001 From: Michal Vala Date: Fri, 4 Feb 2022 14:11:01 +0100 Subject: [PATCH] github action (#63) --- .github/workflows/build.yml | 16 ++++++++++++++++ .travis.yml | 10 ---------- README.md | 13 ++----------- 3 files changed, 18 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3da3e96 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '11' + cache: 'maven' + - name: Build with Maven + run: mvn -B -U clean install diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 811275a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -dist: trusty -language: java -jdk: - - openjdk8 -sudo: false -script: ./mvnw clean verify cobertura:cobertura-integration-test - -after_success: - - bash <(curl -s https://codecov.io/bash) - - mvn com.gavinmogan:codacy-maven-plugin:coverage -DcoverageReportFile=target/site/cobertura/coverage.xml -DprojectToken=${CODACY_TOKEN} -DapiToken=${CODACY_TOKEN} \ No newline at end of file diff --git a/README.md b/README.md index a431c49..2bd6fae 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ For more info how it works, how to configure, ... [See Wiki](https://github.com/ ## Build & run +Java 11 is required + ``` $ ./mvnw install && java -jar target/boxitory-{version}.jar ``` @@ -29,14 +31,3 @@ $ ./mvnw clean package docker:build docker:run ``` By default, container expose port *8083* with running app. Files with boxes needs to be stored in ./boxes dir. -#### Build status (travis-ci) - -devel [![Build Status](https://travis-ci.org/sparkoo/boxitory.svg?branch=devel)](https://travis-ci.org/sparkoo/boxitory) -[![codecov](https://codecov.io/gh/sparkoo/boxitory/branch/devel/graph/badge.svg)](https://codecov.io/gh/sparkoo/boxitory) -[![codebeat badge](https://codebeat.co/badges/40f8804c-f98d-4f2c-958a-737c901fa5fe)](https://codebeat.co/projects/github-com-sparkoo-boxitory-devel) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4bdd9bd53659424e96c4119d9c8fa7fc)](https://www.codacy.com/app/sparkoo/boxitory?utm_source=github.com&utm_medium=referral&utm_content=sparkoo/boxitory&utm_campaign=Badge_Grade) - - -master: [![Build Status](https://travis-ci.org/sparkoo/boxitory.svg?branch=master)](https://travis-ci.org/sparkoo/boxitory) - -