mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
* upgrade node to version 6 * upgrade npm to v4 * update shrinkwrap * use npm 4 in travis * use mongoose 4.6.4 * update shrinkwrap * fix async test and upgrade mongoose * fix amazon test * remove debugging code * working tests with separate server * update coupon code * mupdate mongoose * nvm: relax node version in .nvmrc
22 lines
933 B
YAML
22 lines
933 B
YAML
language: node_js
|
|
node_js:
|
|
- '6'
|
|
before_install:
|
|
- npm install -g npm@4
|
|
- 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
|
|
- cp config.json.example config.json
|
|
- if [ $REQUIRES_SERVER ]; then until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done; export DISPLAY=:99; fi
|
|
after_script:
|
|
- ./node_modules/.bin/lcov-result-merger 'coverage/**/*.info' | ./node_modules/coveralls/bin/coveralls.js
|
|
script: npm run $TEST
|
|
env:
|
|
matrix:
|
|
- TEST="lint"
|
|
- TEST="test:api-v3" REQUIRES_SERVER=true
|
|
- TEST="test:sanity"
|
|
- TEST="test:content"
|
|
- TEST="test:common"
|
|
- TEST="test:karma"
|
|
- TEST="client:unit"
|