-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
46 lines (37 loc) · 929 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
41
42
43
44
45
46
---
language: python
python: "2.7"
matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: linux
sudo: required
dist: xenial
# Install pip
addons:
apt:
packages:
- python-pip
before_install:
# Make sure everything's up to date.
- sudo apt-get update -qq
install:
# Install ansible
- pip2 install ansible
# Check ansible version
- ansible --version
# Setup Env
- mkdir -vp roles/ansible-teamcity-server
- ansible-galaxy install --roles-path roles ansiblebit.oracle-java
- mv -v README.md defaults handlers meta tasks templates vars roles/ansible-teamcity-server
- mv ansible.cfg tests
script:
- cd tests
- ansible-playbook ./test.yml -i inventory --syntax-check
- ansible-playbook -i inventory ./test.yml
after_script:
- cat /opt/TeamCity/logs/teamcity-server.log
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/