-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (58 loc) · 1.8 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
language: node_js
node_js:
- "0.10"
- "0.12"
addons:
firefox: "38.0"
apt_packages:
- libgmp-dev
env:
global:
- DISABLE_ROUTE_LOGGING=true
sudo: false
cache:
directories:
- node_modules
- app/bower_components
- fxa-auth-server/node_modules
notifications:
irc:
channels:
- 'irc.mozilla.org#fxa-bots'
use_notice: false
skip_join: false
before_install:
# Update npm to 2.4
- npm install -g npm@2.4
# 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"
- wget http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
- java -jar selenium-server-standalone-2.45.0.jar &> /dev/null &
install:
# install everything for full dev in the fxa-content-server.
- travis_retry npm install --silent
# copy over the configuration that can be used to start the server.
- cp server/config/local.json-dist server/config/local.json
# install the resources necessary for the auth server.
- mkdir -p fxa-auth-server
- cd fxa-auth-server && git init && git pull git://github.com/mozilla/fxa-auth-server.git --depth 1
# first npm install will fail because there is no global GMP, we add localGmp after that failure
- npm install
# start the DB server
- cd node_modules/fxa-auth-db-mem
- LOG_LEVEL=error npm start &
- cd ../../
# start the auth server
- node ./scripts/gen_keys.js
- LOG_LEVEL=error npm start &
- cd ..
- npm start &
- sleep 5
# now run the tests!
script:
- npm ls --depth 0 | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g'
- grunt validate-shrinkwrap --force # check for vulnerable modules via nodesecurity.io
- grunt lint
- travis_retry npm run test-travis
- travis_retry npm run test-server