I believe this should be

    if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then ...