Skip to content

Commit

Permalink
update ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
santino committed Jul 18, 2020
1 parent b9681de commit f6d9c2e
Show file tree
Hide file tree
Showing 2 changed files with 13,392 additions and 300 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@ node_js:
- stable
- lts/*

install:
- npm install

script: skip # skip default test script which would run in watch mode

jobs:
include:
- stage: test plus coverage
script: npm run coverage
- stage: coverall report
script: COVERALLS_REPO_TOKEN=$coveralls_repo_token npm run coveralls
- stage: build bundle
after_script:
- COVERALLS_REPO_TOKEN=$coveralls_repo_token npm run coveralls
- stage: bundle build plus size check
script: npm run build
- stage: check bundle size
script: bundlesize
after_script:
- bundlesize
- stage: publish package
if: tag IS present
node_js: "stable"
script: npm run build
after_script:
- npm run cleanupminified
Expand All @@ -26,6 +30,7 @@ jobs:
provider: npm
email: $NPM_AUTH_EMAIL
api_key: $NPM_AUTH_TOKEN
skip_cleanup: true
on:
tags: true
branch: master
Loading

0 comments on commit f6d9c2e

Please sign in to comment.