forked from mozilla/firefox-ui-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (35 loc) · 1.32 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
language: c
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:
- DISPLAY=$(if [[ $TRAVIS_OS_NAME = 'linux' ]]; then echo ':99'; fi)
MOZ_XVFB=$(if [[ $TRAVIS_OS_NAME = 'linux' ]]; then echo 1; fi)
BINARY=$(if [[ $TRAVIS_OS_NAME = 'osx' ]]; then echo 'FirefoxNightly.app/Contents/MacOS/firefox'; else echo 'firefox/firefox'; fi)
before_install:
- ./.travis/before_install.sh
- virtualenv ~/.venv
- source ~/.venv/bin/activate
install:
# As long as we have invasive changes, lets get the trunk version of marionette-client
- svn checkout https://github.com/mozilla/gecko-dev/trunk/testing/marionette/client
- "cd client && python setup.py develop && cd .."
- python setup.py develop
- pip install mozdownload mozinstall pep8
before_script:
# Run pep8 on all except the checked out marionette-client folder
- pep8 --max-line-length=99 --exclude=client .
# Download Firefox Nightly, which is compatible with the Marionette client version used
- "cd && mozdownload -t daily"
- mozinstall *-firefox-*
script:
- firefox-ui-tests --binary $BINARY
notifications:
email:
- dev-automation@lists.mozilla.org
irc:
- "irc.mozilla.org#automation"