Add .travis.yml to run redis tests
This commit is contained in:
parent
0df19c3dce
commit
6754ca5d30
9
.travis-settings.xml
Normal file
9
.travis-settings.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<settings>
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>sonatype-nexus-snapshots</id>
|
||||||
|
<username>${env.SONATYPE_USERNAME}</username>
|
||||||
|
<password>${env.SONATYPE_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
40
.travis.yml
Normal file
40
.travis.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
language: java
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
- redis-server
|
||||||
|
|
||||||
|
script:
|
||||||
|
- mvn test -B -Dmaven.test.skip=false
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- env: JDK='OpenJDK 8'
|
||||||
|
jdk: openjdk8
|
||||||
|
- env: JDK='OracleJDK 8'
|
||||||
|
jdk: oraclejdk8
|
||||||
|
- env: JDK='OpenJDK 9'
|
||||||
|
install: . ./install-jdk.sh -F 9 -L GPL
|
||||||
|
- env: JDK='OracleJDK 9'
|
||||||
|
jdk: oraclejdk9
|
||||||
|
- env: JDK='OpenJDK 10'
|
||||||
|
install: . ./install-jdk.sh -F 10 -L GPL
|
||||||
|
- env: JDK='OpenJDK 11'
|
||||||
|
install: . ./install-jdk.sh -F 11 -L GPL
|
||||||
|
- env: JDK='OpenJDK 12'
|
||||||
|
install: . ./install-jdk.sh -F 12 -L GPL
|
||||||
|
- env: JDK='OpenJDK 13'
|
||||||
|
install: . ./install-jdk.sh -F 13 -L GPL
|
||||||
|
- env: JDK='OpenJDK 14'
|
||||||
|
install: . ./install-jdk.sh -F 14 -L GPL
|
||||||
|
|
||||||
|
before_install: wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- if [[ "${JDK}" == 'OpenJDK 8' ]]; then
|
||||||
|
mvn deploy --settings .travis-settings.xml -Dmaven.test.skip=true -B || travis_terminate 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.m2
|
4
pom.xml
4
pom.xml
@ -85,8 +85,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.1</version>
|
<version>3.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.5</source>
|
<source>1.7</source>
|
||||||
<target>1.5</target>
|
<target>1.7</target>
|
||||||
<debug>false</debug>
|
<debug>false</debug>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -39,7 +39,7 @@ public class RedisScheduler extends AbstractScheduler {
|
|||||||
|
|
||||||
public static final String defaultQueuePrefix;
|
public static final String defaultQueuePrefix;
|
||||||
|
|
||||||
public static final Module redisModule;
|
public static final SimpleModule redisModule;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
String prefix = System.getProperty("redis.queuePrefix");
|
String prefix = System.getProperty("redis.queuePrefix");
|
||||||
|
Loading…
Reference in New Issue
Block a user