Use production=false during install

Otherwise dev dependency bins aren't present
This commit is contained in:
Ray Schamp 2018-06-28 11:22:35 -04:00
parent a8fd1f9c38
commit bc7428ed07

View file

@ -16,7 +16,7 @@ before_install:
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
- npm install -g greenkeeper-lockfile
install:
- if [[ ${TRAVIS_BRANCH:0:11} = greenkeeper ]]; then npm install; else npm ci; fi
- if [[ ${TRAVIS_BRANCH:0:11} = greenkeeper ]]; then npm install --production=false; else npm ci --production=false; fi
before_script: greenkeeper-lockfile-update
script: npm run $NPM_SCRIPT
after_script: greenkeeper-lockfile-upload