habitica/.travis.yml

32 lines
794 B
YAML
Raw Normal View History

2013-09-29 14:31:35 +00:00
language: node_js
node_js:
- '6'
2017-07-19 22:50:57 +00:00
services:
- mongodb
cache:
directories:
- 'node_modules'
addons:
chrome: stable
2015-10-29 16:12:53 +00:00
before_install:
- npm install -g npm@5
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"
- 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"
- TEST="test:content" COVERAGE=true
- TEST="test:common" COVERAGE=true
- TEST="client:unit" COVERAGE=true
- TEST="apidoc"