VIVO-1960: GitHub Build Action (#210)
* add build workflow * remove travis * update readme badge Partially resolves: https://jira.lyrasis.org/browse/VIVO-1960
This commit is contained in:
parent
8b9a7484b3
commit
06d9f5d333
3 changed files with 29 additions and 23 deletions
28
.github/workflows/build.yml
vendored
Normal file
28
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
on: [ push, pull_request, workflow_dispatch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
MAVEN_OPTS: -Xmx1024M
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- 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
|
22
.travis.yml
22
.travis.yml
|
@ -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:
|
|
||||||
- "echo 'Skipping install stage, dependencies will be downloaded during build and test stages.'"
|
|
||||||
|
|
||||||
script:
|
|
||||||
- "mvn clean package -Dmaven.test.skip=false"
|
|
|
@ -1,6 +1,6 @@
|
||||||
# What is Vitro?
|
# What is Vitro?
|
||||||
|
|
||||||
[](https://travis-ci.org/vivo-project/Vitro)
|
[](https://github.com/vivo-project/Vitro/actions?query=workflow%3ABuild)
|
||||||
|
|
||||||
Vitro is a general-purpose web-based ontology and instance editor with customizable public browsing.
|
Vitro is a general-purpose web-based ontology and instance editor with customizable public browsing.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue