1 #!/bin/bash -e 2 3 if [[ $USE_OPTIONAL != "true" && $USE_OPTIONAL != "false" ]]; then 4 echo "fatal: \$USE_OPTIONAL not set to true or false. Exiting." 5 exit 1 6 fi 7 8 pip install -r requirements-test.txt 9 10 if [[ $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 16 fi 17