-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
52 lines (41 loc) · 1.57 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
46
47
48
49
50
51
52
---
env:
DOCKER_COMPOSE_VERSION: 1.15.0
sudo: required
language: python
python: '2.7'
services:
- docker
before_install:
# perform updates
- sudo apt-get update -qq
# check for docker-compose version
- docker-compose --version
# update to a newer version of docker-compose
- sudo rm /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
# revalidate version of docker-compose
- docker-compose --version
# install ansible
- sudo apt-get install -qq python-apt
- mkdir -p ~/.ansible/vars
- touch ~/.ansible/vars/toad_vars.yml
- sudo docker pull projectatomic/dockerfile-lint
# instantiate our docker nodes
- docker-compose up -d
install:
- pip install ansible
- pip install ansible-lint
- ansible-galaxy install -r requirements.yml
before_script:
- ansible-playbook --syntax-check elk.yml
- ansible-playbook --syntax-check jenkins.yml
- ansible-playbook --syntax-check openstack.yml
- ansible-playbook --syntax-check site.yml
- ansible-lint --exclude=roles site.yml
- sudo docker run -it --rm --privileged -v `pwd`:/root/ projectatomic/dockerfile-lint dockerfile_lint --permissive -f dockerfiles/*
script:
- ansible-galaxy install -r requirements.yml
- ansible-playbook site.yml -i hosts/containers -e use_openstack_deploy=false -e deploy_type='docker' --skip-tags jenkins_slave -c docker