fxa-auth-server/.travis.yml

51 строка
958 B
YAML

language: node_js
node_js:
- "4.5"
dist: trusty
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
env:
global:
- NODE_ENV=test
matrix:
- DB=memory
- DB=mysql
notifications:
email:
- zcarter@mozilla.com
- dcoates@mozilla.com
- jbonacci@mozilla.com
- rfkelly@mozilla.com
- jrgm@mozilla.com
irc:
channels:
- "irc.mozilla.org#fxa-bots"
use_notice: false
skip_join: false
before_install:
- 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
- COVERALLS_REPO_TOKEN=vKN3jjhAOwxkv9HG0VBX4EYIlWLPwiJ9d npm test
- npm run test-e2e
- grunt nsp