diff --git a/.travis.yml b/.travis.yml index b8947f2..e01f1a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,24 @@ cache: - $HOME/.cache/pip env: + global: + - MINICONDA_DIST=Miniconda3-4.5.4-Linux-x86_64.sh + - MINICONDA_SOURCE=https://repo.continuum.io/miniconda + - CONDA_DIR=$HOME/miniconda3 + - PATH=$CONDA_DIR/bin:$PATH + matrix: - TO_TEST=CODE - TO_TEST=NOTEBOOKS - TO_TEST=STYLE + - TO_TEST=BROWSER +before_install: + - if [ "$TO_TEST" = "BROWSER" ]; then source build_tools/before_install.sh; fi + install: + - if [ "$TO_TEST" = "BROWSER" ]; then conda env update -n robot --file ${TRAVIS_BUILD_DIR}/build_tools/robot_tests.yml; fi + - if [ "$TO_TEST" = "BROWSER" ]; then source activate robot; fi - pip install -e . - pip install pytest-cov codecov mypy flake8 nose - if [ "$TO_TEST" = "NOTEBOOKS" ]; then pip install notebook nbconvert; fi diff --git a/build_tools/before_install.sh b/build_tools/before_install.sh new file mode 100644 index 0000000..562c19c --- /dev/null +++ b/build_tools/before_install.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -ex +wget --no-verbose --continue ${MINICONDA_SOURCE}/${MINICONDA_DIST} +bash ${MINICONDA_DIST} -fbp ${CONDA_DIR} diff --git a/build_tools/robot_tests.yml b/build_tools/robot_tests.yml new file mode 100644 index 0000000..a28f8d7 --- /dev/null +++ b/build_tools/robot_tests.yml @@ -0,0 +1,15 @@ +# taken from https://github.com/deathbeds/jyve/blob/9b25c2844a8cb1132e2c631b1e8b08cf76f44e5b/environment.yml +name: robot-tests + +channels: + - conda-forge + - defaults + +dependencies: + - geckodriver + - nodejs >=8.9.3,<9 + - python-chromedriver-binary + - robotframework-lint + - robotframework-seleniumlibrary + - selenium =3.8.0 + - wget