dumb-init/ci/docker-tox

26 lines
660 B
Text
Raw Normal View History

2016-07-02 21:36:30 +03:00
#!/bin/bash -eux
set -o pipefail
. /mnt/ci/docker
2017-02-25 03:46:55 +03:00
# The default mirrors are too flaky to run reliably in CI.
sed -E \
'/security\.debian/! s@http://[^/]+/@http://mirrors.kernel.org/@' \
-i /etc/apt/sources.list
2016-07-02 21:36:30 +03:00
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x5BB92C09DB82666C
2017-10-13 18:50:56 +03:00
echo 'deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial main' >> /etc/apt/sources.list
2017-02-25 03:46:55 +03:00
2016-07-02 21:36:30 +03:00
apt-get update
apt-get install -y --no-install-recommends \
git \
python2.7-dev \
2017-02-25 03:46:55 +03:00
python3.6-dev
2016-07-02 21:36:30 +03:00
# We cannot use the Ubuntu versions of tox or virtualenv:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754248
pip install tox virtualenv
hash -r
tox