-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
33 lines (30 loc) · 864 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: python
python:
- "3.7.5"
# command to install dependencies
services:
- xvfb
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
install:
- pip install --upgrade packaging
- pip install -r requirements.txt
- pip install dash[testing]
- python -m spacy download en
# command to run tests
script:
- python -m pytest ./
before_script:
- wget https://chromedriver.storage.googleapis.com/96.0.4664.45/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo apt-get install libnss3
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- dpkg -i google-chrome-stable_current_amd64.deb; sudo apt-get -fy install
- sudo cp chromedriver /usr/local/bin/.
- sudo chmod +x /usr/local/bin/chromedriver
- export DISPLAY=:99.0
- sleep 3