-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
43 lines (41 loc) · 1.19 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
language: python
python:
- "3.6"
# - "3.7"
# env:
# global:
# - CXX=g++-4.8
# - DISPLAY=:99.0
# - CHROME_BIN=/usr/bin/google-chrome
addons:
chrome: stable
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.23.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
# Chrome driver
- wget -N https://chromedriver.storage.googleapis.com/2.45/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
install:
- pip install --upgrade pip
- pip install -r requirements.txt
before_script:
- python manage.py migrate
- python manage.py runserver &
- sleep 3 # give django server time to bind to sockets
script:
- whereis google-chrome-stable
- whereis chromedriver
# - tox
# - coverage run -m pytest core/tests
- behave
# - coverage report -m
# after_script:
# - "sh -e /etc/init.d/xvfb stop"
after_success:
coveralls