habitica/.travis.yml

23 lines
937 B
YAML
Raw Normal View History

2013-09-29 14:31:35 +00:00
language: node_js
node_js:
2016-03-05 15:17:31 +00:00
- '4.3.1'
2015-10-29 16:12:53 +00:00
before_install:
2016-10-21 03:10:54 +00:00
- npm install -g npm@3
- if [ $REQUIRES_SERVER ]; then sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10; echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list; sudo apt-get update; sudo apt-get install mongodb-org-server; fi
before_script:
- npm run test:build
2013-12-25 19:17:05 +00:00
- cp config.json.example config.json
2016-10-21 03:10:54 +00:00
- if [ $REQUIRES_SERVER ]; then until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done; export DISPLAY=:99; fi
2015-06-09 08:21:54 +00:00
after_script:
2016-10-21 03:10:54 +00:00
- ./node_modules/.bin/lcov-result-merger 'coverage/**/*.info' | ./node_modules/coveralls/bin/coveralls.js
script: npm run $TEST
env:
matrix:
- TEST="lint"
- TEST="test:sanity"
- TEST="test:content"
- TEST="test:common"
- TEST="test:karma"
- TEST="client:unit"
- TEST="test:api-v3" REQUIRES_SERVER=true