Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
rgoers committed Jan 29, 2022
1 parent dcfc4a1 commit 394db11
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 48 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache license, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the license for the specific language governing permissions and
# limitations under the license.

name: build

on:
push:
branches:
- trunk
pull_request:

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]

steps:

- name: Checkout repository
uses: actions/checkout@v2

# JDK 8 is needed for the build, and it is the primary bytecode target.
- name: Setup JDK 8
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8
java-package: jdk
architecture: x64
cache: maven

- name: Inspect environment (Linux)
if: runner.os == 'Linux'
run: env | grep '^JAVA'

- name: Inspect environment (MacOS)
if: runner.os == 'macOS'
run: env | grep '^JAVA'

- name: Build with Maven
timeout-minutes: 90
shell: bash
run: |
./mvnw \
--show-version --batch-mode --errors --no-transfer-progress \
-DtrimStackTrace=false \
-Dsurefire.rerunFailingTestsCount=2"
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

0 comments on commit 394db11

Please sign in to comment.