Skip to content

Commit

Permalink
proposed linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
jodygarnett committed Jan 7, 2021
1 parent 608c1b8 commit d0ef182
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ If applicable, add the server log file to help trace your problem.

**Desktop (please complete the following information):**
- Browser [e.g. chrome, safari]
- GeoNetwork Version [e.g. 22]
- Server Application [e.g. Tomcat 7 with Java 8]
- GeoNetwork Version [e.g. 3.10]
- Server Application [e.g. Tomcat 9 with Java 8]

**Additional context**
Add any other context about the problem here.
74 changes: 74 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Linux GitHub CI

on: [pull_request,push,workflow_dispatch]

env:
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Xmx512m -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS
TAKARI_SMART_BUILDER_VERSION: 0.6.1

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-18.04
jdk: 8
steps:
- uses: actions/checkout@v2
with:
# 500 commits, set to 0 to get all
fetch-depth: 500
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.6.3
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Remove SNAPSHOT jars from repository
run: |
find .m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}
- name: Remove Schema 3.8 jars from repository
run: |
find .m2/repository -name "*3.8*" -type d | xargs rm -rf {}
QA:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
# 500 commits, set to 0 to get all
fetch-depth: 500
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.6.3
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn test -B -T3 -fae
- name: Remove Schema 3.8 jars from repository
run: |
find .m2/repository -name "*3.8*" -type d | xargs rm -rf {}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ git*.properties
*/.*
*/target/
.*/
!.github/

/geonetwork*
camel-harvesters/wfsfeature-harvester/logs
changes-*
Expand Down
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit d0ef182

Please sign in to comment.