language: node_js node_js: - '10' services: - mongodb cache: directories: - 'node_modules' addons: chrome: stable before_script: - npm run test:build - cp config.json.example config.json - sleep 5 script: - npm run $TEST - if [ $COVERAGE ]; then ./node_modules/.bin/lcov-result-merger 'coverage/**/*.info' | ./node_modules/coveralls/bin/coveralls.js; fi env: global: - DISABLE_REQUEST_LOGGING=true matrix: - TEST="lint" - TEST="test:api:unit" REQUIRES_SERVER=true COVERAGE=true - TEST="test:api-v3:integration" REQUIRES_SERVER=true COVERAGE=true - TEST="test:api-v4:integration" REQUIRES_SERVER=true COVERAGE=true - TEST="test:sanity" - TEST="test:content" COVERAGE=true - TEST="test:common" COVERAGE=true - TEST="client:unit" COVERAGE=true - TEST="apidoc"