This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
/
.travis.yml
74 lines (63 loc) · 1.82 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
65
66
67
68
69
70
71
72
73
74
language: node_js
node_js: "10"
services:
- redis-server
addons:
firefox: "65.0"
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- graphicsmagick
- g++-4.8
env:
global:
- DISABLE_ROUTE_LOGGING=true
- DISABLE_CLIENT_METRICS_STDERR=true
- CXX=g++-4.8
# Need to use "trusty" for Java 1.8
# Ref: https://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/
sudo: required
dist: trusty
group: deprecated-2017Q3
cache:
directories:
- node_modules
- deps/fxa-auth-server/node_modules
- deps/node_modules/fxa-profile-server/node_modules
- deps/fxa-auth-server/fxa-oauth-server/node_modules
notifications:
irc:
channels:
- 'irc.mozilla.org#fxa-bots'
use_notice: false
skip_join: false
before_install:
# Setup the xvfb environment. Read more at http://docs.travis-ci.com/user/gui-and-headless-browsers/
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "npm i -g npm@6"
install:
# install everything for full dev in the fxa-content-server.
- travis_retry npm install --silent
- npm run-script lint:deps
- grunt lint
# copy over the configuration that can be used to start the server.
- cp server/config/local.json-dist server/config/local.json
# install auth, oauth, verifier and profile servers
- ./tests/ci/deps.sh
- npm start &
- sleep 5
# now run the tests!
script:
- grunt selectconfig:dist l10n-generate-pages &> /dev/null
- grunt htmllint:dist
- which firefox
- java -version
- firefox --version
# even though Firefox <version> is install in `addons`,
# the default firefox-bin is used by Selenium, which is Firefox 31.
# firefoxBinary=`which firefox` forces the version we installed
# to be used.
- travis_retry npm run test-travis -- --firefoxBinary=`which firefox`
- travis_retry npm run test-server