-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
39 lines (27 loc) · 937 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
33
language: python
sudo: true
python:
- "3.6"
- "3.7"
# - "3.8"
addons:
chrome: stable
# apt:
# packages:
# - chromium-chromedriver
install:
- pip install -r requirements.txt
- pip install dash[testing]
- pip install flake8
before_script:
- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
- curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
- unzip chromedriver_linux64.zip -d ~/bin
# - ln --symbolic /usr/lib/chromium-browser/chromedriver "${HOME}/bin/chromedriver"
# - ls ${HOME}/bin/
- flask run & # Run in background, to run pytest next
script:
- flake8 --max-line-length 120
- pytest server/src/dashboard/tests --headless
#after_script: pkill -9 -f "autoapp.py"