From 3a9ef87dbd6474d6ccfab92404a8162f14335fe6 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sat, 27 Apr 2019 12:26:22 -0700 Subject: [PATCH] Updating travis file to work with greenkeeper --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a296f44..043d247 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ # This is a node.js v8+ JavaScript project language: node_js node_js: - - "8" + - "10" # Build on Ubuntu Trusty (14.04) # https://docs.travis-ci.com/user/reference/trusty/#javascript-and-nodejs-images -dist: trusty +dist: xenial sudo: required # Use Docker @@ -16,6 +16,11 @@ before_install: - ./install-mongo #- npm install -g mocha +# https://github.com/greenkeeperio/greenkeeper-lockfile/issues/156 +install: case $TRAVIS_BRANCH in greenkeeper*) npm i;; *) npm ci;; esac; + +script: "npm run test" + # Send coverage data to Coveralls after_success: - npm run coverage