forked from danigosa/django-redis-sentinel-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (32 loc) · 981 Bytes
/
.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
sudo: required
dist: xenial
services:
- docker
env:
global:
- DOCKER_VERSION=1.12.2-0~trusty
- DOCKER_COMPOSE_VERSION=1.8.0
before_install:
# list docker-engine versions
- apt-cache madison docker-engine
# upgrade docker-engine to specific version
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}
# reinstall docker-compose at specific version
- sudo rm -f /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
before_script:
- docker-compose up --build -d
script:
- ./test.sh
after_script:
- docker-compose down
notifications:
email:
recipients:
- danigosa@gmail.com
- dani@robbie.ai
- dani@infantium.com
on_success: change
on_failure: change