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 121
/
.travis.yml
84 lines (77 loc) · 1.55 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
75
76
77
78
79
80
81
82
83
84
language: node_js
node_js: "10"
dist: trusty
sudo: true
services:
- memcached
- redis-server
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g -4.8
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
notifications:
email:
irc:
channels:
- "irc.mozilla.org#fxa-bots"
use_notice: false
skip_join: false
_aliases:
- &test
before_install:
- npm i -g npm@6
- npm config set spin false
- &fxa-auth-memory-test
env: DB=memory
<<: *test
- &fxa-auth-mysql-test
env: DB=mysql
<<: *test
- &fxa-oauth-memory-test
env: CXX=g -4.8 NODE_ENV=test DB=memory
<<: *test
- &fxa-oauth-mysql-test
env: CXX=g -4.8 NODE_ENV=test DB=mysql
<<: *test
jobs:
include:
- stage:
node_js: "10"
<<: *fxa-auth-memory-test
install:
- npm ci
script:
- npm run test-ci
- npm run test-e2e
- NODE_ENV=test npm run test-scripts
- grunt templates && git status -s | (! grep 'M lib/senders/templates/')
- grunt l10n-extract
- npm run lint:deps
- stage:
node_js: "10"
<<: *fxa-auth-mysql-test
install:
- npm ci
script:
- ./scripts/start-travis-auth-db-mysql.sh
- npm run test-ci
- npm run test-e2e
- stage:
node_js: "10"
<<: *fxa-oauth-memory-test
install:
- npm ci
script: npm run test-oauth
- stage:
node_js: "10"
<<: *fxa-oauth-memory-test
install:
- npm ci
script: npm run test-oauth