2018-11-06 13:47:09 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import ci_lib
|
|
|
|
|
|
|
|
batches = [
|
|
|
|
[
|
|
|
|
# Must be installed separately, as PyNACL indirect requirement causes
|
|
|
|
# newer version to be installed if done in a single pip run.
|
2020-04-24 21:10:00 +00:00
|
|
|
# Separately install ansible based on version passed in from azure-pipelines.yml or .travis.yml
|
2019-01-19 06:44:49 +00:00
|
|
|
'pip install "pycparser<2.19" "idna<2.7"',
|
2018-11-06 13:47:09 +00:00
|
|
|
'pip install '
|
|
|
|
'-r tests/requirements.txt '
|
|
|
|
'-r tests/ansible/requirements.txt',
|
2020-09-06 21:19:52 +00:00
|
|
|
# encoding is required for installing ansible 2.10 with pip2, otherwise we get a UnicodeDecode error
|
2020-10-03 22:35:28 +00:00
|
|
|
'LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 pip install -q ansible=={0}'.format(ci_lib.ANSIBLE_VERSION)
|
2018-11-06 13:47:09 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
|
2021-02-08 22:15:18 +00:00
|
|
|
batches.append(ci_lib.throttle(
|
|
|
|
'docker pull %s' % (ci_lib.image_for_distro(distro),)
|
2018-11-06 13:47:09 +00:00
|
|
|
for distro in ci_lib.DISTROS
|
2021-02-08 22:15:18 +00:00
|
|
|
))
|
2018-11-06 13:47:09 +00:00
|
|
|
|
|
|
|
ci_lib.run_batches(batches)
|