From 6dbc31cc9dcce323610e32e150487295bb1dc533 Mon Sep 17 00:00:00 2001 From: William Welling Date: Tue, 9 Feb 2021 14:01:29 -0600 Subject: [PATCH] VIVO-1960: GitHub Build Action (#217) * add build workflow * remove travis * update readme badge Partially resolves: https://jira.lyrasis.org/browse/VIVO-1960 --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 22 ---------------------- README.md | 2 +- 3 files changed, 32 insertions(+), 23 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 00000000..3f19448c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build + +on: [ push, pull_request, workflow_dispatch ] + +jobs: + build: + runs-on: ubuntu-latest + + env: + MAVEN_OPTS: -Xmx1024M + + steps: + - uses: actions/checkout@v2 + + - name: Clone Vitro + run: git clone https://github.com/vivo-project/Vitro.git ../Vitro + + - name: Maven Cache + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-cache-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-cache-m2- + + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Maven Build + run: mvn clean package -Dmaven.test.skip=false diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6e4a4255..00000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: java -dist: trusty -sudo: false - -jdk: - - openjdk8 - - oraclejdk8 - -env: - # Give Maven 1GB of memory to work with - - MAVEN_OPTS=-Xmx1024M - -cache: - directories: - - .autoconf - - $HOME/.m2 - -install: - - git clone https://github.com/vivo-project/Vitro.git ../Vitro - -script: - - "mvn clean package -Dmaven.test.skip=false" diff --git a/README.md b/README.md index b7f894a6..ffd09438 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # VIVO: Connect, Share, Discover -[![Build Status](https://travis-ci.org/vivo-project/VIVO.png?branch=develop)](https://travis-ci.org/vivo-project/VIVO) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2639714.svg)](https://doi.org/10.5281/zenodo.2639713) +[![Build](https://github.com/vivo-project/VIVO/workflows/Build/badge.svg)](https://github.com/vivo-project/VIVO/actions?query=workflow%3ABuild) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2639714.svg)](https://doi.org/10.5281/zenodo.2639713) VIVO is an open source semantic web tool for research discovery -- finding people and the research they do.