mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
d66ce40ecb
- Tests are run to completion instead of stopping on first failure. - Test results are now parsed instead of passing through to the console. - Test results can be saved in junit xml format. - Test results will show up on the Shippable "Tests" result tab. - Added an experimental --lint option for easier integration with other tools. - Code smell tests are now usable with the --list-tests, --test and --skip-test options. - Code split out from executor.py into sanity.py. - Rename download-logs to download.py and add support for test and coverage results. - Miscellaneous improvements.
22 lines
672 B
Bash
Executable file
22 lines
672 B
Bash
Executable file
#!/bin/bash -eux
|
|
|
|
set -o pipefail
|
|
|
|
retry.py add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
|
|
retry.py add-apt-repository 'ppa:ubuntu-toolchain-r/test'
|
|
retry.py add-apt-repository 'ppa:fkrull/deadsnakes'
|
|
|
|
retry.py apt-get update -qq
|
|
retry.py apt-get install -qq \
|
|
shellcheck \
|
|
python2.4 \
|
|
g++-4.9 \
|
|
python3.6-dev \
|
|
|
|
ln -sf x86_64-linux-gnu-gcc-4.9 /usr/bin/x86_64-linux-gnu-gcc
|
|
|
|
retry.py pip install tox --disable-pip-version-check
|
|
|
|
ansible-test compile --color -v
|
|
ansible-test sanity --color -v --junit --tox --skip-test ansible-doc --python 2.7
|
|
ansible-test sanity --color -v --junit --tox --test ansible-doc --coverage
|