-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github actions for continuous integration
Unfortunately, TravisCI is gradually turning down its OSS offering. This has the benefit of using clearer, flexible, and more powerful workflow definitions. Due to getting a little attention, some long-standing flaky tests were fixed and style cleaned up.
- Loading branch information
Showing
27 changed files
with
379 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
run() { | ||
echo $1 | ||
eval $1 | ||
} | ||
|
||
run "./gradlew pmdJavaPoet pmdMain -Dpmd" | ||
run "./gradlew spotbugsJavaPoet spotbugsMain spotbugsJmh -Dspotbugs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
run() { | ||
echo $1 | ||
eval $1 | ||
} | ||
|
||
run "./gradlew check" | ||
run "./gradlew :caffeine:slowGuavaTest" | ||
run "./gradlew :caffeine:slowCaffeineTest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: analysis | ||
on: [ push, pull_request ] | ||
|
||
env: | ||
ORG_GRADLE_PROJECT_checksumFailOn: build_finish | ||
ORG_GRADLE_PROJECT_checksumIgnore: false | ||
ORG_GRADLE_PROJECT_checksumPrint: true | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 8, 15 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/wrapper | ||
~/.gradle/caches | ||
~/.sonar/cache | ||
~/.m2 | ||
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.java }}-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: Run analyzers | ||
run: ./.github/scripts/analyze.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: build | ||
on: [ push, pull_request ] | ||
|
||
env: | ||
ORG_GRADLE_PROJECT_checksumFailOn: build_finish | ||
ORG_GRADLE_PROJECT_checksumIgnore: false | ||
ORG_GRADLE_PROJECT_checksumPrint: true | ||
MAX_JVM: 15 | ||
MIN_JVM: 8 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 8, 15 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/wrapper | ||
~/.gradle/caches | ||
~/.sonar/cache | ||
~/.m2 | ||
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.java }}-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: Run tests | ||
run: ./.github/scripts/test.sh | ||
- name: Publish Coverage | ||
if: > | ||
success() | ||
&& matrix.java == env.MIN_JVM | ||
&& github.event_name == 'push' | ||
&& endsWith(github.ref, github.event.repository.default_branch) | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: ./gradlew coveralls | ||
- name: SonarQube | ||
if: > | ||
success() | ||
&& matrix.java == env.MAX_JVM | ||
&& github.event_name == 'push' | ||
&& endsWith(github.ref, github.event.repository.default_branch) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew sonarqube | ||
- name: Publish Snapshot | ||
if: > | ||
success() | ||
&& matrix.java == env.MIN_JVM | ||
&& github.event_name == 'push' | ||
&& endsWith(github.ref, github.event.repository.default_branch) | ||
env: | ||
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | ||
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | ||
run: ./gradlew publish |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: examples | ||
on: [ push, pull_request ] | ||
|
||
env: | ||
ORG_GRADLE_PROJECT_checksumFailOn: build_finish | ||
ORG_GRADLE_PROJECT_checksumIgnore: false | ||
ORG_GRADLE_PROJECT_checksumPrint: true | ||
|
||
jobs: | ||
examples: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 8, 15 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/wrapper | ||
~/.gradle/caches | ||
~/.sonar/cache | ||
~/.m2 | ||
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.java }}-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: stats-metrics | ||
working-directory: examples/stats-metrics | ||
run: ./gradlew test | ||
- name: write-behind-rxjava | ||
working-directory: examples/write-behind-rxjava | ||
run: mvn test | ||
- name: coalescing-bulkloader | ||
working-directory: examples/coalescing-bulkloader | ||
run: mvn test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.