2015-08-31 20:44:04 -04:00
|
|
|
sudo: false
|
|
|
|
|
2014-01-27 21:28:21 -05:00
|
|
|
language: node_js
|
2015-08-31 20:44:04 -04:00
|
|
|
|
2014-01-12 14:10:36 -05:00
|
|
|
node_js:
|
2015-12-04 20:04:35 -05:00
|
|
|
- 5.1.1
|
2016-07-15 13:15:45 -04:00
|
|
|
|
|
|
|
env:
|
|
|
|
- CXX=g++-4.8
|
2014-01-27 21:32:56 -05:00
|
|
|
|
2015-08-31 20:44:04 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- mongodb-upstart
|
2016-07-15 13:15:45 -04:00
|
|
|
- ubuntu-toolchain-r-test
|
2015-08-31 20:44:04 -04:00
|
|
|
packages:
|
|
|
|
- mongodb-org-server
|
2016-07-15 13:15:45 -04:00
|
|
|
- g++-4.8
|
2015-08-31 20:44:04 -04:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- bower_components
|
|
|
|
|
2014-06-09 20:04:51 -04:00
|
|
|
before_install:
|
2015-10-22 10:24:43 -04:00
|
|
|
- export COCO_TRAVIS_TEST=1
|
2015-08-31 20:44:04 -04:00
|
|
|
- npm install -g npm@latest
|
2015-05-20 20:22:29 -04:00
|
|
|
|
2014-01-12 14:10:36 -05:00
|
|
|
before_script:
|
2016-07-15 12:59:10 -04:00
|
|
|
- npm update
|
2014-01-12 14:10:36 -05:00
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2014-06-09 18:07:39 -04:00
|
|
|
- "node index.js --unittest &"
|
2016-01-13 17:02:51 -05:00
|
|
|
- "sleep 15" # to give node a chance to start
|
2014-01-27 21:32:56 -05:00
|
|
|
|
2014-01-12 14:10:36 -05:00
|
|
|
script:
|
2016-06-17 13:42:59 -04:00
|
|
|
- "./node_modules/karma/bin/karma start --browsers Firefox --single-run --reporters dots"
|
2015-12-09 17:27:10 -05:00
|
|
|
- "npm run jasmine"
|
2016-06-06 18:50:31 -04:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
rooms:
|
|
|
|
- secure: dv1zozcLo/gGb1i1OeKKLQgjLagW3jqhkEIiZrVbubfRMrrHouZwtlg1HDVc2GOzP1yCaUOYOLBqT3lTE9CKt4pE8k3p0gJ77j1rHxTyeYny2ETq4w5sXak8ju8M3EDnj+Au2NWWrGiD0YkIUnF5vxzKUc1pkS+vDSWR2ORkOrU=
|
|
|
|
template:
|
|
|
|
- Tests failed <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of %{repository}@%{branch} by %{author} %{result} <!here>
|
|
|
|
on_success: never
|
|
|
|
on_failure: always
|
|
|
|
on_start: never
|
|
|
|
on_pull_requests: false
|