habitica/.travis.yml

36 lines
1.3 KiB
YAML
Raw Normal View History

2013-09-29 14:31:35 +00:00
language: node_js
node_js:
- '6'
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
2015-10-29 16:12:53 +00:00
before_install:
- $CXX --version
- npm install -g npm@4
2016-10-21 03:10:54 +00:00
- 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
install:
- npm install &> npm.install.log || (cat npm.install.log; false)
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
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:
- CXX=g++-4.8
- DISABLE_REQUEST_LOGGING=true
2016-10-21 03:10:54 +00:00
matrix:
- TEST="lint"
- TEST="test:api-v3" 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="test:karma" COVERAGE=true
- TEST="client:unit" COVERAGE=true