Skip to content

Commit

Permalink
Update test dependency installation (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Jul 31, 2019
1 parent d72500f commit 0b254d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
language: python
cache: pip
dist: bionic

addons:
chrome: stable
chrome: stable

services:
- xvfb

python:
- "3.6"
Expand All @@ -12,19 +15,18 @@ matrix:

before_install:
- sudo apt-get -qq update
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- pip freeze | grep -vw "pip" | xargs pip uninstall -y
- pip install --upgrade pip

install:
- wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip
- wget https://chromedriver.storage.googleapis.com/76.0.3809.12/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- export PATH=$PATH:$PWD

script:
- pip install .
- pip install .[tests]
- pip install dash[testing]
- pycodestyle webviz_config
- pytest tests
- pushd ./docs; python build_docs.py; popd
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ Then install dev requirements and run pytest:

```bash
pip install .[tests]
pip install dash[testing]
pytest tests
```

The second of these commands appears to be necessary as long as
[this `pip` issue is open](https://github.com/pypa/pip/issues/4957).

Linting can be checked by:

```bash
Expand Down

0 comments on commit 0b254d3

Please sign in to comment.