2018-10-30 19:04:59 +08:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "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:
|
2020-06-20 06:04:55 +08:00
|
|
|
- pip install -r tests/requirements.txt
|
|
|
|
- pip install ansible-lint pytest-cov
|
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
|
2020-05-13 02:13:35 +08:00
|
|
|
- pytest --cov=library/ --cov=plugins/filter/ -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
|