Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions build_tools/before_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -ex
wget --no-verbose --continue ${MINICONDA_SOURCE}/${MINICONDA_DIST}
bash ${MINICONDA_DIST} -fbp ${CONDA_DIR}
15 changes: 15 additions & 0 deletions build_tools/robot_tests.yml
Original file line number Diff line number Diff line change
@@ -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