habitica-self-host/.travis.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2013-09-29 14:31:35 +00:00
language: node_js
node_js:
- '6'
sudo: required
dist: precise
2017-07-19 22:50:57 +00:00
services:
- mongodb
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@5
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
- sleep 15
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="apidoc"