From 463b30902c3dae9dde435509848bb6f24f8ecf2a Mon Sep 17 00:00:00 2001 From: "Sean C. Sullivan" Date: Sat, 6 Feb 2021 10:46:59 -0800 Subject: [PATCH] enable GitHub Actions CI --- .circleci/config.yml | 28 --------------------------- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++ .travis.settings.xml | 41 ---------------------------------------- .travis.yml | 13 ------------- pom.xml | 4 ++-- 5 files changed, 29 insertions(+), 84 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.settings.xml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b571a483..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,28 +0,0 @@ -version: 2 -jobs: - build: - working_directory: ~/scoverage/scoverage-maven-plugin - - environment: - _JAVA_OPTIONS: -Xms512m -Xmx1024m - - docker: - - image: circleci/openjdk:8-jdk-stretch - - steps: - - checkout - - restore_cache: - keys: - # This branch if available - - v1-dep-{{ .Branch }}- - # Default branch if not - - v1-dep-master- - # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly - - v1-dep- - - run: java -XX:+PrintFlagsFinal -version - - run: mvn --version - - run: mvn verify --update-snapshots --settings .travis.settings.xml -e - - save_cache: - key: v1-dep-{{ .Branch }}-{{ epoch }} - paths: - - ~/.m2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..8da4f9e1 --- /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 animal-sniffer:check diff --git a/.travis.settings.xml b/.travis.settings.xml deleted file mode 100644 index da9525d6..00000000 --- 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 961d9974..00000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: java - -cache: - directories: - - $HOME/.m2 - -install: - - java -XX:+PrintFlagsFinal -version - - mvn --version - -script: mvn verify animal-sniffer:check --update-snapshots --settings .travis.settings.xml -e - -jdk: openjdk8 diff --git a/pom.xml b/pom.xml index 8a00df7f..fba429c7 100644 --- a/pom.xml +++ b/pom.xml @@ -44,8 +44,8 @@ under the License. - Travis CI - https://travis-ci.org/scoverage/scoverage-maven-plugin + GitHub Actions + https://github.com/scoverage/scoverage-maven-plugin/actions