summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/html5lib/requirements-install.sh
blob: 5f8ba50645f9b99569fdae2ba78cb55555586380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -e

if [[ $USE_OPTIONAL != "true" && $USE_OPTIONAL != "false" ]]; then
  echo "fatal: \$USE_OPTIONAL not set to true or false. Exiting."
  exit 1
fi

pip install -r requirements-test.txt

if [[ $USE_OPTIONAL == "true" && $TRAVIS_PYTHON_VERSION != "pypy" ]]; then
  if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then
    pip install --allow-external Genshi --allow-insecure Genshi -r requirements-optional-2.6.txt
  else
    pip install --allow-external Genshi --allow-insecure Genshi -r requirements-optional-cpython.txt
  fi
fi