forked from BonnyCI/hoist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (23 loc) · 971 Bytes
/
Copy path.travis.yml
File metadata and controls
30 lines (23 loc) · 971 Bytes
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
---
language: python
python: "2.7"
cache: pip
sudo: required
services:
- docker
matrix:
fast_finish: true
env:
- TEST_RUN="ansible-playbook -i inventory/allinone-bastion bastion.yml -c docker -vv -e @secrets.yml.example --skip-tags monitoring,not-on-docker,letsencrypt"
- TEST_RUN="ansible-playbook -i inventory/allinone install-ci.yml tests/files/validate-ci.yml -c docker -vv -e @secrets.yml.example --skip-tags monitoring,not-on-docker,letsencrypt"
before_install:
- docker pull ubuntu:xenial
- docker run -d --name allinone --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro ubuntu:xenial systemd
- docker exec -i allinone apt-get update
- docker exec -i allinone apt-get install -y python-apt ca-certificates apt-transport-https sudo ssh
- docker exec -i allinone touch /var/log/auth.log # fail2ban fails to start without this file in place
install:
- pip install ansible
script: "$TEST_RUN"
after_failure:
- docker exec -i allinone journalctl -xe