From 35133c2f4ac45b303564e2b4e175a3f783622c38 Mon Sep 17 00:00:00 2001 From: Nokome Bentley Date: Tue, 4 Dec 2018 09:28:35 +1300 Subject: [PATCH] ci: fix greenper issue Use npm install for Greenkeeper branch See https://github.com/greenkeeperio/greenkeeper-lockfile/issues/156#issuecomment-397719017 --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 31b80ccd..348019fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,11 @@ addons: before_install: - openssl aes-256-cbc -K $encrypted_1d93d61b46d3_key -iv $encrypted_1d93d61b46d3_iv -in win-cert.p12.enc -out win-cert.p12 -d +# Use npm install if this is a Greenkeeper branch +# See https://github.com/greenkeeperio/greenkeeper-lockfile/issues/156#issuecomment-397719017 +install: + - case $TRAVIS_BRANCH in greenkeeper*) npm i;; *) npm ci;; esac; + # Do linting, coverage, and build docs (to upload to Github pages) script: - make lint