-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
30 lines (27 loc) · 1.08 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
sudo: required
services:
- docker
before_install:
# use recent docker
- sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-precise main" > /etc/apt/sources.list.d/docker.list'
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
- sudo apt-get update
- sudo apt-key update
- sudo apt-get -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=1.12.0-0~trusty
# use recent docker-compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker -v
- docker-compose -v
# skip default `bundle install`
install: true
script:
- cd test
- docker-compose up -d postgres
- sleep 5
- docker-compose run flyway info -X
- docker-compose run flyway
- docker-compose run flyway info -X
- docker-compose run postgres psql -h postgres -p 5432 -U postgres postgres -c "\dt"