Skip to content

Commit e5f2d18

Browse files
author
Sergei Antipov
committed
Fixed travis build
1 parent 25c7cec commit e5f2d18

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.travis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ env:
66
- >
77
distribution=ubuntu-upstart
88
version=14.04
9-
- >
10-
distribution=ubuntu-upstart
11-
version=12.04
12-
- >
13-
distribution=debian
14-
version=7
9+
# - >
10+
# distribution=ubuntu-upstart
11+
# version=12.04
12+
# - >
13+
# distribution=debian
14+
# version=7
1515

1616
services:
1717
- docker
@@ -20,22 +20,22 @@ before_install:
2020
- sudo apt-get update
2121
# Latest Ansible install
2222
- sudo apt-add-repository -y ppa:ansible/ansible
23-
- sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ansible-ansible-precise.list" \
24-
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
23+
- sudo apt-get update
2524
- sudo apt-get install ansible python-pip -y
26-
- sudo pip install docker-py
25+
- sudo pip install docker-py==1.5.0
2726
# Pull docker image
28-
- docker pull ${distribution}:${version}
27+
- sudo docker pull ${distribution}:${version}
28+
- sudo ln -s ${PWD} /etc/ansible/roles/greendayonfire.mongodb
2929

3030
script:
31-
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
31+
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
3232
# Idempotence test
3333
- >
34-
ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
34+
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
3535
| grep -q 'changed=0.*failed=0'
3636
&& (echo 'Idempotence test: pass' && exit 0)
3737
|| (echo 'Idempotence test: fail' && exit 1)
3838
3939
# Delete all containers
40-
- docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
40+
- sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
4141

0 commit comments

Comments
 (0)