Merge pull request #456 from jackygurui/feature/travis-ci

Feature/travis ci
pull/461/head
Nikita Koksharov 9 years ago
commit 688cf7d4fa

@ -0,0 +1,40 @@
# Copyright 2014 Nikita Koksharov, Nickolay Borbit
#
# 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.
sudo: false
dist: trusty
language: java
jdk:
- oraclejdk8
env:
matrix:
- REDIS_VERSION=3.0.7
- REDIS_VERSION=2.8.24
- REDIS_VERSION=3.2.0-rc3
cache:
directories:
- $HOME/.m2
install:
- export REDIS_BIN=$HOME/redis/${REDIS_VERSION}/bin
- wget -c https://github.com/antirez/redis/archive/${REDIS_VERSION}.tar.gz -O redis-${REDIS_VERSION}.tar.gz
- tar -xvf redis-${REDIS_VERSION}.tar.gz
- make -C redis-${REDIS_VERSION} PREFIX=$HOME/redis/${REDIS_VERSION} install
before_script:
- $REDIS_BIN/redis-server --daemonize yes
- sleep 3
- $REDIS_BIN/redis-cli PING
- export REDIS_VERSION="$(redis-cli INFO SERVER | sed -n 2p)"
- echo $REDIS_VERSION
script: mvn -DargLine="-DredisBinary=$REDIS_BIN/redis-server -DtravisEnv=true" -Punit-test -Ptravis clean verify

@ -12,6 +12,7 @@ import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;
import org.redisson.RedisRunner.RedisProcess;
import org.redisson.client.RedisConnectionException;
@ -262,6 +263,7 @@ public class RedissonTest {
@Test
public void testManyConnections() {
Assume.assumeFalse(Boolean.valueOf(System.getProperty("travisEnv")));
Config redisConfig = new Config();
redisConfig.useSingleServer()
.setConnectionMinimumIdleSize(10000)

Loading…
Cancel
Save