forked from mozilla/firefox-ui-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (45 loc) · 1.92 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
sudo: false
language: c
branches:
exclude:
# Do not run tests for ESR releases, because there are no latest builds available
- /^mozilla-esr.*$/
os:
- osx
- linux
compiler:
# we don't require a C compiler! if we don't specify one here, we get extra builds,
# for both gcc and clang
- gcc
env:
# Test with our internal pypi mirror
- PIP_FIND_LINKS=http://pypi.pub.build.mozilla.org/pub
PIP_NO_INDEX=1
DISPLAY=$(if [[ $TRAVIS_OS_NAME = 'linux' ]]; then echo ':99'; fi)
MOZ_XVFB=$(if [[ $TRAVIS_OS_NAME = 'linux' ]]; then echo 1; fi)
# ... and with the official pypi website
- DISPLAY=$(if [[ $TRAVIS_OS_NAME = 'linux' ]]; then echo ':99'; fi)
MOZ_XVFB=$(if [[ $TRAVIS_OS_NAME = 'linux' ]]; then echo 1; fi)
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then /sbin/start-stop-daemon --start --quiet --make-pidfile --pidfile /tmp/custom_xvfb_99.pid --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x768x24 ; fi
install:
# We need to either pin our marionette version or get every dependent package from
# tree to avoid bustage. Pinning marionette means we're more likely to work out of the
# the box for those working locally without a clone of m-c.
# - svn checkout https://github.com/mozilla/gecko-dev/trunk/testing/marionette/client
# - "cd client && python setup.py develop && cd .."
- python create_venv.py --with-optional-packages ~/.venv
- source ~/.venv/bin/activate
before_script:
# Run pep8 on all except the checked out marionette-client folder
- pep8 --config ./.pep8.rc --exclude=client .
# Prepare the build and everything else
- ./.travis/before_script.sh
script:
# Run in non-e10s mode
- firefox-ui-tests --installer *firefox-* --gecko-log -
# Run in e10s mode
- firefox-ui-tests --installer *firefox-* --gecko-log - --e10s
notifications:
irc:
- "irc.mozilla.org#automation"