-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
40 lines (33 loc) · 851 Bytes
/
.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
---
language: python
python: "2.7"
matrix:
include:
- os: linux
dist: trusty
sudo: required
- os: linux
dist: xenial
sudo: required
# Install pip
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip2 install ansible
# Check ansible version
- ansible --version
# Setup Env
- mkdir -vp roles/ansible-teamcity-agent
- ansible-galaxy install --roles-path roles ansiblebit.oracle-java
- ansible-galaxy install --roles-path roles matisku.teamcity-server
- mv -v README.md defaults handlers meta tasks templates vars roles/ansible-teamcity-agent
- mv ansible.cfg tests
script:
- cd tests
- ansible-playbook ./test.yml -i inventory --syntax-check
- ansible-playbook -i inventory ./test.yml
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/