2018-11-05 21:09:54 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2019-02-14 11:17:52 +00:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
import ci_lib
|
|
|
|
|
2018-11-06 13:47:09 +00:00
|
|
|
batches = []
|
2019-02-14 11:17:52 +00:00
|
|
|
|
|
|
|
if ci_lib.have_apt():
|
|
|
|
batches.append([
|
|
|
|
'echo force-unsafe-io | sudo tee /etc/dpkg/dpkg.cfg.d/nosync',
|
|
|
|
'sudo add-apt-repository ppa:deadsnakes/ppa',
|
|
|
|
'sudo apt-get update',
|
|
|
|
'sudo apt-get -y install python2.6 python2.6-dev libsasl2-dev libldap2-dev',
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
#batches.append([
|
|
|
|
#'pip install -r dev_requirements.txt',
|
|
|
|
#])
|
|
|
|
|
|
|
|
if ci_lib.have_docker():
|
|
|
|
batches.extend(
|
|
|
|
['docker pull %s' % (ci_lib.image_for_distro(distro),)]
|
|
|
|
for distro in ci_lib.DISTROS
|
|
|
|
)
|
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
|
2018-11-06 13:47:09 +00:00
|
|
|
ci_lib.run_batches(batches)
|