Add .travis.yml to run redis tests

This commit is contained in:
Travis Burtrum 2019-06-26 22:12:54 -04:00
parent 0df19c3dce
commit 6754ca5d30
4 changed files with 52 additions and 3 deletions

9
.travis-settings.xml Normal file
View 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
View 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

View File

@ -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>

View File

@ -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");