You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
# 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
|
|
- redis-cli SHUTDOWN NOSAVE
|
|
script: mvn -Dsurefire.rerunFailingTestsCount=5 -DargLine="-DredisBinary=$REDIS_BIN/redis-server -DtravisEnv=true" -Punit-test clean verify
|