forked from mozilla/fireplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (64 loc) · 2.25 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
62
63
64
sudo: false
branches:
only:
- master
notifications:
irc:
channels:
- irc.mozilla.org#amo-bots
- irc.mozilla.org#fireplace
on_success: change
on_failure: change
email: false
language: node_js
python:
- '2.7'
node_js:
- '0.10'
addons:
firefox: "latest-esr"
sauce_connect: true
firefox: "latest-esr"
env:
matrix:
- RUN_TEST=uitest-phantom START_SERVER=1 UPLOAD_CAPTURES=1 MAKE_LANGPACKS=1
- RUN_TEST=uitest-slimer START_SERVER=1 UPLOAD_CAPTURES=1 MAKE_LANGPACKS=1
- RUN_TEST=uitest-webqa START_SERVER=1 FIREPLACE_SETTINGS=src/media/js/settings_local_webqa.js
- RUN_TEST=sherlocked API=mock START_SERVER=1 MAKE_LANGPACKS=1
- RUN_TEST=lint
- RUN_TEST=unittest
- RUN_TEST=test-langpacks
- RUN_TEST=test-iframe-package
global:
- secure: ZiW8luJSf9AFCf+ZfMeSeD8Njv4rWjMNrPW31aaZ5axqpdHT1ml23Tsl2H3Lu6sFQ1kYqb/QtXW9PLMkfwsddI7uR52eKDzd1rbrNcyNnt9L2kcrPdK1sJdUEDDlQ3MkdcCQxod3I4hFNYRyD7HbJxOBbgshCYj2T7fv0GVOT2k=
- secure: dv/0SujZlQ5d/YS0I3bZm51NHq6Fc1BbVxRMbWF1x77LqjGG938uQu5WTgoGVWNc53cW2PIJWygZM/kCxn48l8zUUhwX81ngpQFUOVTMgirI0fvb8xnzG+i27FmVnGz4CI/4Ll0GWlgPfRPYSm6ZtyzDLQFzwGEEsAQTSgaYrRc=
matrix:
allow_failures:
- env: RUN_TEST=uitest-phantom START_SERVER=1 UPLOAD_CAPTURES=1 MAKE_LANGPACKS=1
- env: RUN_TEST=sherlocked API=mock START_SERVER=1 MAKE_LANGPACKS=1
- env: RUN_TEST=uitest-webqa START_SERVER=1 FIREPLACE_SETTINGS=src/media/js/settings_local_webqa.js
before_script:
- export PHANTOMJS_EXECUTABLE='phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes'
- export SLIMERJSLAUNCHER=firefox/firefox
- make install
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- if [ $START_SERVER ]; then bash tests/serve.sh; fi
- if [ $MAKE_LANGPACKS ]; then commonplace langpacks; fi
- if [ $RUN_TEST = 'uitest-slimer' ]; then make install-slimer; fi
# Install the Firefox needed for slimer if we don't have it.
- test "$RUN_TEST" = 'uitest-slimer' && test ! -e 'firefox/firefox' && make install-firefox; return 0
- if [ $RUN_TEST = 'uitest-webqa' ]; then make install-webqa; fi
script:
- make $RUN_TEST
- if [ $UPLOAD_CAPTURES ]; then make upload-captures; fi
cache:
directories:
- "/tmp/pip-cache"
- "/tmp/python-env"
- node_modules
- bower_components
- firefox
- $HOME/.cache/pip
- .virtualenvs
- "webqa-tests"