summaryrefslogtreecommitdiffstats
path: root/test/runner/docker/requirements.sh
blob: f16e1b7e982c9f1c7126ae7dd69dbe17509415a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -eu

python_versions=(
    2.6
    2.7
    3.5
    3.6
)

requirements=()

for requirement in *.txt; do
    if [ "${requirement}" != "constraints.txt" ]; then
        requirements+=("-r" "${requirement}")
    fi
done

for python_version in "${python_versions[@]}"; do
    set -x
    "python${python_version}" /tmp/get-pip.py -c constraints.txt
    "pip${python_version}" install --disable-pip-version-check -c constraints.txt "${requirements[@]}"
    set +x
done