2013-05-14 04:00:22 +04:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2017-11-01 01:42:19 +03:00
|
|
|
- "8"
|
2013-05-14 04:00:22 +04:00
|
|
|
|
2016-04-13 21:52:14 +03:00
|
|
|
dist: trusty
|
2018-10-24 10:00:17 +03:00
|
|
|
sudo: true
|
2014-04-19 06:05:47 +04:00
|
|
|
|
2017-11-15 17:33:57 +03:00
|
|
|
services:
|
2018-10-24 10:03:02 +03:00
|
|
|
- memcached
|
2017-11-15 17:33:57 +03:00
|
|
|
- redis-server
|
|
|
|
|
2015-12-10 18:22:05 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2018-10-24 10:00:17 +03:00
|
|
|
- g++-4.8
|
2016-04-13 21:52:14 +03:00
|
|
|
- mysql-server-5.6
|
|
|
|
- mysql-client-core-5.6
|
|
|
|
- mysql-client-5.6
|
2015-12-10 18:22:05 +03:00
|
|
|
|
2013-05-14 04:00:22 +04:00
|
|
|
notifications:
|
|
|
|
email:
|
2013-12-12 03:39:32 +04:00
|
|
|
- rfkelly@mozilla.com
|
2015-09-10 22:45:48 +03:00
|
|
|
- jrgm@mozilla.com
|
2013-05-14 04:00:22 +04:00
|
|
|
irc:
|
|
|
|
channels:
|
2015-07-01 07:30:04 +03:00
|
|
|
- "irc.mozilla.org#fxa-bots"
|
2013-05-14 04:00:22 +04:00
|
|
|
use_notice: false
|
|
|
|
skip_join: false
|
|
|
|
|
2018-10-24 10:00:17 +03:00
|
|
|
_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
|
2018-09-19 20:57:08 +03:00
|
|
|
|
2018-10-24 10:00:17 +03:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage:
|
|
|
|
node_js: 8
|
|
|
|
<<: *fxa-auth-memory-test
|
|
|
|
install:
|
|
|
|
- npm ci
|
|
|
|
script:
|
|
|
|
- npm run test-ci
|
|
|
|
- npm run test-e2e
|
2018-11-23 02:32:35 +03:00
|
|
|
- NODE_ENV=test npm run test-scripts
|
2018-10-24 10:00:17 +03:00
|
|
|
- grunt templates && git status -s | (! grep 'M lib/senders/templates/')
|
|
|
|
- grunt l10n-extract
|
|
|
|
- npm run lint:deps
|
|
|
|
- stage:
|
|
|
|
node_js: 8
|
|
|
|
<<: *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: 8
|
|
|
|
<<: *fxa-oauth-memory-test
|
|
|
|
install:
|
|
|
|
- cd fxa-oauth-server && npm ci && cd ..
|
|
|
|
script: cd fxa-oauth-server && npm test
|
|
|
|
- stage:
|
|
|
|
node_js: 8
|
|
|
|
<<: *fxa-oauth-memory-test
|
|
|
|
install:
|
|
|
|
- cd fxa-oauth-server && npm ci && cd ..
|
|
|
|
script: cd fxa-oauth-server && npm test
|