2018-10-30 19:04:59 +08:00
|
|
|
language: python
|
|
|
|
python:
|
2019-03-04 23:29:09 +08:00
|
|
|
- "2.7"
|
2018-10-30 19:04:59 +08:00
|
|
|
- "3.6"
|
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
|
|
|
install:
|
2020-10-23 22:24:50 +08:00
|
|
|
- pip install -r tests/requirements.txt
|
|
|
|
- pip install ansible-lint==4.2.0
|
2018-10-30 19:04:59 +08:00
|
|
|
script:
|
2019-07-19 02:57:46 +08:00
|
|
|
- if [[ -n $(grep --exclude-dir=.git -P "\xa0" -r .) ]]; then echo 'NBSP characters found'; exit 1; fi
|
2019-10-21 22:03:08 +08:00
|
|
|
- for i in $(ls -1 roles/); do ANSIBLE_LOG_PATH=/dev/null ansible-lint -x 204 -v roles/$i/; if [ $? -ne 0 ]; then exit 1; fi; done
|