forked from openedx/xblock-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (36 loc) · 829 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: false
language: python
addons:
firefox: "52.0.1"
python:
- "2.7"
env:
- TOXENV=py27-django18
- TOXENV=py27-django111
matrix:
include:
- python: 2.7
env: TOXENV=quality
branches:
only:
- master
cache:
directories:
- $HOME/.cache/pip
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.15.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
- pip install -U pip
install:
- pip install tox-travis
- pip install -r requirements/travis.txt
script:
- tox
after_success:
- codecov