-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
20 lines (20 loc) · 894 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
notifications:
webhooks: https://outlook.office.com/webhook/700961ed-505f-4e1e-b5fe-7c76f59fbfca@c2b3e619-27df-4933-a5c9-a04df220fc52/TravisCI/1185fc3e97fb4e05a5a97c3ba544567a/2642d2e9-1c56-43d8-85e1-617d7ba7a35c
dist: trusty
sudo: required
language: python
python:
- "2.7"
before_install:
- sudo apt-get update -qq
install:
- pip install ansible
- curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
- sudo apt-get install gitlab-runner
- export ANSIBLE_LIBRARY="$ANSIBLE_LIBRARY:./library"
- echo -e "[local]\r\nlocalhost ansible_connection=local" > hosts
script:
- ansible-playbook -i ./hosts play.yml --syntax-check
- ansible-playbook -i ./hosts -vvv play.yml
- sudo grep 'runner_test' /etc/gitlab-runner/config.toml
- if [ "$?" == "1" ]; then sudo cat /etc/gitlab-runner/config.toml; fi