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:
|
|
|
|
- pip install -r requirements.txt
|
2018-11-16 17:57:14 +08:00
|
|
|
- pip install ansible-lint pytest
|
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
|
2018-11-16 17:57:14 +08:00
|
|
|
- pytest -vvvv library/
|
2019-03-23 03:51:35 +08:00
|
|
|
- for i in $(ls -1 roles/); do ansible-lint -x 204 -v roles/$i/ ; done
|