From 00e9f6cb2e5979d6abc4b71312c537779c1c8bc7 Mon Sep 17 00:00:00 2001 From: "Sean C. Sullivan" Date: Sat, 6 Feb 2021 10:39:51 -0800 Subject: [PATCH] enable GitHub Actions CI --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++ .travis.settings.xml | 41 ---------------------------------------- .travis.yml | 19 ------------------- 3 files changed, 27 insertions(+), 60 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.settings.xml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d34aaab --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build: + strategy: + matrix: + java: [ '8', '11', '15' ] + os: [ 'ubuntu-latest' ] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: print Java version + run: java -version + - name: Build + run: mvn --no-transfer-progress -B clean verify diff --git a/.travis.settings.xml b/.travis.settings.xml deleted file mode 100644 index da9525d..0000000 --- a/.travis.settings.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - sonatype-snapshots-repo - - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots - - false - - - true - - - - - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots - - false - - - true - - - - - - - - sonatype-snapshots-repo - - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 87f2f3d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: java - -cache: - directories: - - $HOME/.m2 - - $HOME/.zinc - -install: - - java -XX:+PrintFlagsFinal -version - - mvn --version - # Workaround to avoid 'The log length has exceeded the limit of 4 MB' limitation - # when downloading all dependencies and plugins (after long time without builds) - # --quiet option limits logs to errors only - - mvn compile -Ptravis --quiet --fail-never --update-snapshots --settings .travis.settings.xml -e - -script: - - mvn verify site --update-snapshots --settings .travis.settings.xml -e - -jdk: openjdk8