2013-09-29 14:31:35 +00:00
|
|
|
language: node_js
|
|
|
|
|
node_js:
|
2016-12-12 20:51:53 +00:00
|
|
|
- '6'
|
2017-07-19 22:50:57 +00:00
|
|
|
services:
|
|
|
|
|
- mongodb
|
2018-01-21 21:47:58 +00:00
|
|
|
cache:
|
|
|
|
|
directories:
|
|
|
|
|
- 'node_modules'
|
2018-02-19 17:56:48 +00:00
|
|
|
addons:
|
|
|
|
|
chrome: stable
|
2015-10-29 16:12:53 +00:00
|
|
|
before_install:
|
2017-09-01 18:21:40 +00:00
|
|
|
- npm install -g npm@5
|
2013-09-14 00:00:35 +00:00
|
|
|
before_script:
|
2016-10-21 03:32:46 +00:00
|
|
|
- npm run test:build
|
2013-12-25 19:17:05 +00:00
|
|
|
- cp config.json.example config.json
|
2018-01-21 21:47:58 +00:00
|
|
|
- sleep 5
|
2017-03-28 11:50:34 +00:00
|
|
|
script:
|
|
|
|
|
- npm run $TEST
|
|
|
|
|
- if [ $COVERAGE ]; then ./node_modules/.bin/lcov-result-merger 'coverage/**/*.info' | ./node_modules/coveralls/bin/coveralls.js; fi
|
2016-10-21 03:10:54 +00:00
|
|
|
env:
|
2017-01-24 11:28:42 +00:00
|
|
|
global:
|
|
|
|
|
- DISABLE_REQUEST_LOGGING=true
|
2016-10-21 03:10:54 +00:00
|
|
|
matrix:
|
|
|
|
|
- TEST="lint"
|
2018-02-02 14:07:39 +00:00
|
|
|
- TEST="test:api-v3:unit" REQUIRES_SERVER=true COVERAGE=true
|
|
|
|
|
- TEST="test:api-v3:integration" REQUIRES_SERVER=true COVERAGE=true
|
2016-10-21 03:10:54 +00:00
|
|
|
- TEST="test:sanity"
|
2017-03-28 11:50:34 +00:00
|
|
|
- TEST="test:content" COVERAGE=true
|
|
|
|
|
- TEST="test:common" COVERAGE=true
|
2018-02-19 17:56:48 +00:00
|
|
|
- TEST="client:unit" COVERAGE=true
|
2017-06-08 17:40:10 +00:00
|
|
|
- TEST="apidoc"
|