-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stark-all): enable npm ci for travis + add package-lock.json + f…
…orce registry.npmjs.org as registry ISSUES CLOSED: #43
- Loading branch information
1 parent
a041722
commit f47d610
Showing
18 changed files
with
67,484 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry=https://registry.npmjs.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,17 @@ 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 [email protected] | ||
- 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' | ||
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc' | ||
|
||
install: | ||
# Create file & folder for Travis logs | ||
# cfr scripts/_travis-fold.sh | ||
- mkdir -p $LOGS_DIR | ||
- touch $LOGS_DIR/build-perf.log | ||
- npm install --no-optional | ||
- npm run install:travis:all | ||
# TODO uncomment this when npmjs registry fixed | ||
# - npm ci | ||
# - npm run install:ci:all | ||
- 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 | ||
|
||
env: | ||
global: | ||
|
@@ -40,6 +38,9 @@ cache: | |
directories: | ||
- $HOME/.npm | ||
|
||
before_script: | ||
- 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 | ||
#addons: | ||
|
@@ -56,3 +57,4 @@ script: | |
|
||
after_success: | ||
- npm run test:ci:coveralls:combined | ||
- if [[ $TRAVIS_BRANCH == greenkeeper* ]]; then greenkeeper-lockfile-upload; fi |
Oops, something went wrong.