-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (63 loc) · 2.32 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
language: python
matrix:
include:
- name: "Python 3.7.1 on Xenial Linux"
python: 3.7 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
- name: "Python 3.7.2 on macOS"
os: osx
osx_image: xcode10.2 # Python 3.7.2 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
# - name: "Python 3.7.3 on Windows"
# os: windows # Windows 10.0.17134 N/A Build 17134
# language: shell # 'language: python' is an error on Travis CI Windows
# before_install: choco install python3
# env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install: pip3 install --upgrade pip
before_install: python -m pip install --upgrade pip
# all three OSes agree about 'pip3'
# 'python' points to Python 2.7 on macOS but points to Python 3.7 on Linux and Windows
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
# Install ansible reveiw
- pip install ansible-review
# Install ansible-lint
- pip install ansible-lint
# Install yamllint
- pip install yamllint
# # Create ansible.cfg with correct roles_path
# - printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Check ansible version
- ansible --version
# Check syntax
- ansible-review --version
- bash -n BASH/install_gui_and_tools.sh
- bash -n BASH/azure_backend_create.sh
- bash -n BASH/create_keys.sh
- bash -n BASH/install_docker-ce.sh
- bash -n BASH/install_git_repos.sh
- bash -n BASH/install_hashicorp_vault.sh
- bash -n BASH/install_homebrew.sh
- bash -n BASH/install_kubectl.sh
- bash -n BASH/install_libreoffice.sh
- bash -n BASH/install_linters.sh
- bash -n BASH/install_terraform.sh
- bash -n BASH/install_virtualbox.sh
- bash -n BASH/install_VSCODE.sh
- bash -n BASH/upgrade_terraform.sh
# Basic role syntax check
# - ansible-playbook -i /etc/ansible/hosts localhost ANISBLE/install_linux.yml --syntax-check
# - git ls-files | grep -Ei '^[^[:punct:]].+.(yaml|yml)$' | xargs ansible-review -q
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/