habitica/.travis.yml

31 lines
823 B
YAML
Raw Normal View History

2013-09-29 14:31:35 +00:00
language: node_js
node_js:
2018-04-27 11:40:58 +00:00
- '10'
2017-07-19 22:50:57 +00:00
services:
- mongodb
cache:
directories:
- 'node_modules'
addons:
chrome: stable
before_script:
- npm run test:build
2013-12-25 19:17:05 +00:00
- 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
2016-10-21 03:10:54 +00:00
env:
global:
- DISABLE_REQUEST_LOGGING=true
2016-10-21 03:10:54 +00:00
matrix:
- TEST="lint"
2018-06-18 12:40:25 +00:00
- TEST="test:api:unit" REQUIRES_SERVER=true COVERAGE=true
- TEST="test:api-v3:integration" REQUIRES_SERVER=true COVERAGE=true
2018-06-18 12:40:25 +00:00
- TEST="test:api-v4:integration" REQUIRES_SERVER=true COVERAGE=true
2016-10-21 03:10:54 +00:00
- TEST="test:sanity"
- TEST="test:content" COVERAGE=true
- TEST="test:common" COVERAGE=true
- TEST="client:unit" COVERAGE=true
- TEST="apidoc"