forked from babel/minify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(build-stages): Publish nightly (babel#744)
- Loading branch information
Showing
2 changed files
with
28 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,42 @@ | ||
--- | ||
git: | ||
depth: 10 | ||
sudo: false | ||
language: node_js | ||
cache: yarn | ||
|
||
node_js: | ||
- '8' | ||
- '6' | ||
- '4' | ||
- '8' | ||
- '6' | ||
- '4' | ||
|
||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2 | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2 | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
|
||
before_script: | ||
- yarn build | ||
- yarn build | ||
|
||
script: | ||
- if [ -n "${LINT-}" ]; then yarn run lint ; fi | ||
- if [ -z "${SKIPTESTS-}" ]; then yarn run coverage; fi | ||
- yarn coverage | ||
|
||
matrix: | ||
include: | ||
- node_js: "node" | ||
env: LINT=true SKIPTESTS=true | ||
after_success: | ||
- yarn coverage-ci | ||
|
||
stages: | ||
- lint | ||
- test | ||
- name: publish | ||
if: (branch = master) AND (repo = babel/minify) | ||
|
||
after_success: yarn run coverage-ci | ||
jobs: | ||
include: | ||
- stage: lint | ||
node_js: '8' | ||
script: yarn lint | ||
- stage: publish | ||
node_js: '8' | ||
script: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' | ||
deploy: | ||
provider: script | ||
script: npm run publish-master | ||
skip_cleanup: true |
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