-
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.
The following incompatibilities had to be disabled: - errorprone (gradle-errorprone-plugin/issues/27) - JavaDoc for simulator (akka/issues/21165) - Soft reference tests (JI-9042970) - OSGi tests (FELIX-5322) - Guava's tests Not sure why CI hangs with Guava's test, as passes locally. Need to investigate.
- Loading branch information
Showing
14 changed files
with
86 additions
and
176 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 |
---|---|---|
@@ -1,42 +1,37 @@ | ||
language: java | ||
sudo: false | ||
|
||
dist: trusty | ||
group: edge | ||
|
||
jdk: | ||
- oraclejdk8 | ||
- oraclejdk9 | ||
|
||
before_install: | ||
- if [[ "x$JDK" == *'x9'* ]]; then remove_dir_from_path $JAVA_HOME/bin; export JAVA_HOME=/usr/lib/jvm/java-9-oracle; export PATH=$JAVA_HOME/bin:$PATH; java -Xmx32m -version; fi | ||
- cp gradle.properties.ci gradle.properties | ||
- export JAVA_OPTS="-Xmx384m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=0 -noverify" | ||
|
||
install: | ||
- ./gradlew assemble --stacktrace | ||
|
||
before_script: | ||
- export MAVEN_SKIP_RC=true | ||
script: | ||
- JAVA_OPTS="-Xmx384m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=0 -noverify" ./gradlew check | ||
- ./gradlew check | ||
- sh -c 'cd examples/write-behind-rxjava && mvn test' | ||
|
||
after_success: | ||
- ./gradlew coveralls uploadArchives | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- jdk: oraclejdk8 # this will be overwritten by before_install above | ||
addons: | ||
apt: | ||
packages: | ||
- oracle-java9-installer | ||
env: | ||
JDK=9 | ||
TERM=dumb | ||
# Temporary disable JDK8 | ||
# - jdk: oraclejdk8 | ||
# env: | ||
# TERM=dumb | ||
|
||
# https://docs.travis-ci.com/user/languages/java/#Projects-Using-Gradle | ||
allow_failures: | ||
- jdk: oraclejdk9 | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ |
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 |
---|---|---|
|
@@ -48,6 +48,8 @@ Use Caffeine in a community provided integration: | |
* [ScalaCache][scala-cache]: Simple caching in Scala | ||
* [Scaffeine][scaffeine]: Scala wrapper for Caffeine | ||
* [Ratpack][ratpack]: Lean & powerful HTTP apps | ||
* [Finagle][finagle]: Extensible RPC system | ||
* [Druid][druid]: Real-time Analytics | ||
|
||
### In the News | ||
|
||
|
@@ -62,7 +64,6 @@ On the radar, | |
* Early discussions with [HBase][hbase], [Cassandra][cassandra], [Solr][solr], and [ElasticSearch][elastic-search] | ||
* Postgres is [evaluating][postgres] whether to port the cache | ||
* Go [implementation][go-tinylfu] of the W-TinyLfu policy | ||
* [Druid][druid] has a caffeine powered extension | ||
|
||
### Download | ||
|
||
|
@@ -116,4 +117,5 @@ Snapshots of the development version are available in | |
[postgres]: https://www.mail-archive.com/[email protected]/msg274326.html | ||
[go-tinylfu]: https://github.com/dgryski/go-tinylfu | ||
[ratpack]: https://github.com/ratpack/ratpack | ||
[druid]: https://github.com/druid-io/druid/pull/3028 | ||
[finagle]: https://github.com/twitter/finagle | ||
[druid]: https://github.com/druid-io/druid |
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
140 changes: 0 additions & 140 deletions
140
caffeine/src/jmh/java/com/github/benmanes/caffeine/cache/SynchronizedBenchmark.java
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
import static org.ops4j.pax.exam.CoreOptions.options; | ||
|
||
import org.junit.Test; | ||
import org.junit.experimental.categories.Categories.IncludeCategory; | ||
import org.junit.experimental.categories.Category; | ||
import org.junit.runner.RunWith; | ||
import org.ops4j.pax.exam.Configuration; | ||
import org.ops4j.pax.exam.Option; | ||
|
@@ -37,6 +39,7 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
@RunWith(PaxExam.class) | ||
@IncludeCategory(OSGiTests.class) | ||
@ExamReactorStrategy(PerMethod.class) | ||
public final class OSGiTest { | ||
|
||
|
@@ -50,6 +53,7 @@ public Option[] config() { | |
} | ||
|
||
@Test | ||
@Category(OSGiTests.class) | ||
public void sanity() { | ||
CacheLoader<Integer, Integer> loader = new CacheLoader<Integer, Integer>() { | ||
@Override public Integer load(Integer key) { | ||
|
21 changes: 21 additions & 0 deletions
21
guava/src/test/java/com/github/benmanes/caffeine/guava/OSGiTests.java
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,21 @@ | ||
/* | ||
* Copyright 2016 Ben Manes. All Rights Reserved. | ||
* | ||
* Licensed 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. | ||
*/ | ||
package com.github.benmanes.caffeine.guava; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
public interface OSGiTests {} |
Oops, something went wrong.