Skip to content

Commit

Permalink
fix(greenkeeper): fix greenkeeper for updating package-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ageorges-nbb committed Aug 3, 2018
1 parent 582f26e commit 000a4a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ before_install:
# TODO remove this variable as it's probably not needed (defined by travis by default?): https://docs.travis-ci.com/user/environment-variables/
- TRAVIS=1 # used by build.sh
- npm i -g npm@5.8.0
- if [[ $TRAVIS_BRANCH == greenkeeper* ]]; then npm i -g greenkeeper-lockfile; fi
- if [[ ${TRAVIS_BRANCH} =~ ^greenkeeper.*$ ]]; then npm i -g greenkeeper-lockfile; fi
# This ensures that we are authenticated without requiring to have an actual .npmrc file within the project
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc'

Expand All @@ -20,8 +20,8 @@ install:
# cfr scripts/_travis-fold.sh
- mkdir -p $LOGS_DIR
- touch $LOGS_DIR/build-perf.log
- if [[ $TRAVIS_BRANCH == greenkeeper* ]]; then npm i --no-optional; else npm ci; fi
- if [[ $TRAVIS_BRANCH == greenkeeper* ]]; then npm run install:travis:all; else npm run install:ci:all; fi
- if [[ ${TRAVIS_BRANCH} =~ ^greenkeeper.*$ ]]; then npm i --no-optional; else npm ci; fi
- if [[ ${TRAVIS_BRANCH} =~ ^greenkeeper.*$ ]]; then npm run install:travis:all; else npm run install:ci:all; fi

env:
global:
Expand All @@ -39,7 +39,7 @@ cache:
- $HOME/.npm

before_script:
- if [[ $TRAVIS_BRANCH == greenkeeper* ]]; then greenkeeper-lockfile-update; fi
- if [[ ${TRAVIS_BRANCH} =~ ^greenkeeper.*$ ]]; then greenkeeper-lockfile-update; fi

# Not needed since we use Puppeteer in karma.conf.ci.js
# It downloads Chrome itself and works with or without Travis
Expand All @@ -50,11 +50,11 @@ script:
- npm run lint:all
- npm run test:ci:all
- npm run docs:coverage
- if [[ $TRAVIS_TAG == "" && ${TRAVIS_EVENT_TYPE} != "cron" ]]; then npm run build:showcase:ghpages:ci-test-env; else npm run build:showcase:ghpages; fi
- if [[ ${TRAVIS_TAG} == "" && ${TRAVIS_EVENT_TYPE} != "cron" ]]; then npm run build:showcase:ghpages:ci-test-env; else npm run build:showcase:ghpages; fi
- npm run docs:publish
- npm run release:publish
- bash ./scripts/ci/print-logs.sh

after_success:
- npm run test:ci:coveralls:combined
- if [[ $TRAVIS_BRANCH == greenkeeper* ]]; then greenkeeper-lockfile-upload; fi
- if [[ ${TRAVIS_BRANCH} =~ ^greenkeeper.*$ ]]; then greenkeeper-lockfile-upload; fi

0 comments on commit 000a4a5

Please sign in to comment.