forked from mozilla/fxa-auth-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 921 Bytes
/
.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
language: node_js
# workaround for obsolete `temp` module 0.6
env:
global:
- TMPDIR=/tmp
node_js:
- "0.10"
- "0.12"
- "4"
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
global:
- NODE_ENV=test
matrix:
- DB=memory
- DB=mysql
notifications:
email:
irc:
channels:
- "irc.mozilla.org#fxa-bots"
use_notice: false
skip_join: false
before_install:
- npm install -g npm@2
- npm config set spin false
install:
# use c++-11 with node4, default compiler on downlevel versions
- if [ $TRAVIS_NODE_VERSION == "4" ]; then CXX=g++-4.8 npm install; else npm install; fi
script:
- if [ $DB == "mysql" ]; then ./scripts/start-travis-auth-db-mysql.sh; fi
- npm test
- grunt nsp --force