forked from webcompat/webcompat.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
61 lines (49 loc) · 1.14 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
53
54
55
56
57
58
59
60
61
# See https://blog.travis-ci.com/2017-12-12-new-trusty-images-q4-launch
sudo: required
dist: trusty
# Only run travis on the master branch (and PRs), not all branches
branches:
only:
- master
language: python
addons:
firefox: "58.0"
chrome: stable
python:
- "2.7"
# cache pip and npm package installations
cache:
pip: true
directories:
- node_modules
# limit the depth of the commits we clone
git:
depth: 5
env:
global:
- ISSUES_REPO_URI=webcompat/webcompat-tests/issues
notifications:
webhooks: https://www.travisbuddy.com/?insertMode=update
on_success: never
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- travis_retry npm install
- travis_retry npm run pip
- travis_retry npm run config
- which firefox
- java -version
- firefox --version
# lint python
- pep8 --ignore=E402 webcompat/ tests/ config/secrets.py.example
- python run.py -t &
before_script:
- "sleep 2"
# lint JS in default eslint task
- npm run lint
- npm run build
# now run the tests!
script:
- nosetests
- npm run test:js -- --reporters="runner" --firefoxBinary=`which firefox`