diff --git a/.travis.yml b/.travis.yml index 3125407a4..6656d1a7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,13 +3,20 @@ sudo: false python: - "2.6" - "2.7" -install: + #- "3.4" +before_install: + - "./.travis_python_dep.sh" +install: true #- pip install pep8 --use-mirrors #- pip install pyflakes --use-mirrors - - pip install robotframework - - pip install selenium - - pip install decorator - - pip install docutils + # Installation is done at before_install + ##- pip install robotframework==3.0b1 + ##- pip install selenium + ##- pip install decorator + ##- pip install docutils + ##- pip install future + # Mockito is only used when in Python 2.7 after installing future + ##- pip install mockito #- "if [[ ${BROWSER} == 'ie' ]]; then pip install ie_only_pkg; fi" before_script: - "export DISPLAY=:99.0" diff --git a/.travis_python_dep.sh b/.travis_python_dep.sh new file mode 100755 index 000000000..239618f4e --- /dev/null +++ b/.travis_python_dep.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -ev +PYTHON_VERSION=`python -c "import sys; print(sys.version[:3])"` +if [ "${PYTHON_VERSION}" = "2.6" ]; then + pip install robotframework==2.9.2 + pip install selenium + pip install decorator + pip install docutils + # pip install future + # pip install mockito +elif [ "${PYTHON_VERSION}" = "2.7" ]; then + pip install robotframework + pip install selenium + pip install decorator + pip install docutils + # pip install future + # pip install mockito +elif [ "${PYTHON_VERSION}" = "3.4" ]; then + pip install robotframework==3.0b1 + pip install selenium + pip install decorator + pip install docutils + pip install future +fi