forked from andreyk0/redis-client-scala-netty
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
45 lines (39 loc) · 1.47 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
dist: trusty
language: scala
scala:
- 2.12.4
jdk:
- oraclejdk8
env:
global:
- REDIS_TAG=3.2.0
- secure: V+QVQZfSYPjdPfBiKsPta63CaIA33Xl6UhTZrWD+KCQ4AXjEKWdIag54ABAAw7gMt6lfVgq4R5J8WiTcAbFVXY62gN4OxzmdUxyOvcgexUAxraQV7QcKNu4TFsMGoSSUv9OM/+CbAyvFWsPXVEAQ/L9GsdmaXjNd6s6ggMr6gLs=
- secure: hQYfRhuuMhvOUiPPsK2xeFpqgv0pzMhw/9EiK1t+MuqyvSAdE159qzKciNprFmGbi6FDgKSu7E7745ukogSrENA2g9tcJR/YP++V/nuxTosH3CCuBDvmALkmYusY6fpYn1c238eB8Uka0X9tU46riU5LhKPaWcdJ0o2p6LW+rTQ=
before_install:
- export REDIS_BIN=$HOME/redis/${REDIS_TAG}/bin
- |
if [ ! -x "$REDIS_BIN/redis-server" ]; then
# For proper caching we must build all redis versions
wget -c https://github.com/antirez/redis/archive/${REDIS_TAG}.tar.gz -O redis-${REDIS_TAG}.tar.gz
tar -xvf redis-${REDIS_TAG}.tar.gz
make -C redis-${REDIS_TAG} PREFIX=$HOME/redis/${REDIS_TAG} install
fi
before_script:
- '$REDIS_BIN/redis-server --daemonize yes --pidfile ./redis-server.pid --unixsocket
/tmp/aioredis.sock --port 6379 --save ""
'
- sleep 3
- export REDIS_VERSION="$(redis-cli INFO SERVER | sed -n 2p)"
- echo $REDIS_VERSION
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
script:
- sbt clean test +package
after_success:
- test "${TRAVIS_PULL_REQUEST}" = 'false' && test "${TRAVIS_TAG}" != '' && sbt +publish