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:
commit
b8bd610eeb
1 changed files with 11 additions and 21 deletions
32
.travis.yml
32
.travis.yml
|
@ -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/
|
||||||
|
|
Loading…
Add table
Reference in a new issue