1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #1235 from arky/TravisCI-Simple

TravisCI Refactoring: Remove patch for local_tmp and linting
This commit is contained in:
A Holt 2018-10-17 13:08:14 -04:00 committed by GitHub
commit b8bd610eeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,32 +6,22 @@ python: "2.7"
dist: trusty dist: trusty
sudo: false sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install: install:
# Install ansible, ansible-lint and ansible-review # Install ansible
- pip install ansible - pip install ansible
- pip install ansible-review
# Create ansible.cfg with correct roles_path and local_tmp # Create ansible.cfg with correct roles_path and local_tmp
- "{ echo '[defaults]'; echo 'roles_path = ../'; echo 'local_tmp = ~/.ansible/tmp'; } >> ansible.cfg" - "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
# Check ansible, version
- ansible --version
- ansible-lint --version
- ansible-review --version
script: script:
# Continuous integration: syntax check # Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check -vvv - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
# Continous integration: ansible-list
- ansible-lint -p *yml
# Continous integration: ansible code review
#- git ls-files *yml roles/ vars/ tests/ | xargs ansible-review
# Continouse integration: ansible code review of changes between master and current branch
#- git diff master | ansible-review
#notifications: #notifications:
# webhooks: # webhooks: https://galaxy.ansible.com/api/v1/notifications/