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