• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash -e
2
3if [[ $USE_OPTIONAL != "true" && $USE_OPTIONAL != "false" ]]; then
4  echo "fatal: \$USE_OPTIONAL not set to true or false. Exiting."
5  exit 1
6fi
7
8pip install -r requirements-test.txt
9
10if [[ $USE_OPTIONAL == "true" && $TRAVIS_PYTHON_VERSION != "pypy" ]]; then
11  if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then
12    pip install --allow-external Genshi --allow-insecure Genshi -r requirements-optional-2.6.txt
13  else
14    pip install --allow-external Genshi --allow-insecure Genshi -r requirements-optional-cpython.txt
15  fi
16fi
17