-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (47 loc) · 1.23 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: python
python:
- "3.6"
# Required to run Selenium tests:
# env:
# - MOZ_HEADLESS=1
addons:
# firefox: latest
chrome: stable
before_install:
# - sudo apt-get update
- sudo apt-get install chromium-chromedriver
# install dependencies
install:
# build frontend:
- cd pydash-front
- yarn
- yarn build
- cd ..
# build backend:
# - wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
# - mkdir geckodriver
# - tar -xzf geckodriver-v0.11.1-linux64.tar.gz -C geckodriver
# - export PATH=$PATH:$PWD/geckodriver
# - wget http://chromedriver.storage.googleapis.com/2.24/chromedriver_linux64.zip
# - mkdir chromedriver
# - unzip chromedriver_linux64.zip -d chromedriver
# - export CHROME_BIN=chromium-browser
# - export PATH=$PATH:$PWD/chromedriver
- cd pydash
- mkdir -p logs
- pip install pipenv
- export FLASK_APP=pydash.py
- export FLASK_ENV=development
- pipenv install --dev
- cd ..
# Setup virtual graphical interface.
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- "export PATH=$PATH:/usr/lib/chromium-browser/"
- nohup chromedriver &
# run pytest
script:
- cd pydash
- pipenv run pytest