forked from adoptium/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 1.34 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
---
language: python
python: "2.7"
sudo: required
dist: trusty
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
- pip install yamllint
- pip install ansible-lint
# Check ansible version
- ansible --version
script:
- cd ansible
# Check that the inventory is valid
- ansible-inventory --host=build-cloudcone-ubuntu1604-x64-1
# Check YAML validity
- yamllint -c yamllint.yml .
# Ansible code static analysis
- ansible-lint playbooks/AdoptOpenJDK_Unix_Playbook/main.yml
- ansible-lint playbooks/AdoptOpenJDK_Windows_Playbook/main.yml
- ansible-lint playbooks/AdoptOpenJDK_Services_Playbooks/ubuntu-api.yml
- ansible-lint playbooks/AdoptOpenJDK_Services_Playbooks/ubuntu-jckservices.yml
- ansible-lint playbooks/aix.yml
- ansible-lint playbooks/ubuntu-jck.yml
# Check Playbook syntax.
- ansible-playbook playbooks/AdoptOpenJDK_Unix_Playbook/main.yml --syntax-check
- ansible-playbook playbooks/AdoptOpenJDK_Windows_Playbook/main.yml --syntax-check
- ansible-playbook playbooks/AdoptOpenJDK_Services_Playbooks/ubuntu-api.yml --syntax-check
- ansible-playbook playbooks/AdoptOpenJDK_Services_Playbooks/ubuntu-jckservices.yml --syntax-check
- ansible-playbook playbooks/aix.yml --syntax-check
- ansible-playbook playbooks/ubuntu-jck.yml --syntax-check