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"
|
2019-11-23 04:17:35 +08:00
|
|
|
- "3.7"
|
|
|
|
- "3.8"
|
2018-10-30 19:04:59 +08:00
|
|
|
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
|
2019-10-26 03:47:05 +08:00
|
|
|
- pytest -vvvv tests/library/ tests/plugins/filter/
|
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
|