-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from mrseanryan/chore/unpin-dev-deps
Chore/unpin dev deps
- Loading branch information
Showing
3 changed files
with
179 additions
and
1,031 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,20 +1,47 @@ | ||
# validate here: https://config.travis-ci.com/explore | ||
language: node_js | ||
os: linux | ||
|
||
cache: | ||
directories: | ||
- ~/.npm | ||
yarn: true | ||
|
||
notifications: | ||
email: false | ||
email: false | ||
|
||
node_js: | ||
- "12" | ||
- "10" | ||
# - "8" - disabled: too old for commitizen | ||
# - '6' - disabled: [email protected] requires node >=8.3 | ||
script: | ||
- npm run test:prod | ||
after_success: | ||
- npm run travis-deploy-once "npm run report-coverage" | ||
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run travis-deploy-once "npm run deploy-docs"; fi | ||
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run travis-deploy-once "npm run semantic-release"; fi | ||
- "12" | ||
- "10" | ||
# - "8" - disabled: too old for commitizen | ||
# - '6' - disabled: [email protected] requires node >=8.3 | ||
|
||
install: | ||
- yarn | ||
|
||
stages: | ||
# stages run in sequence | ||
- 'Test' # default stage, that runs 'yarn test' | ||
- name: 'Code-coverage' | ||
- name: 'Deploy' | ||
if: branch = master AND type = push | ||
|
||
jobs: | ||
include: | ||
# 'Test' runs 'yarn test' default | ||
|
||
- stage: 'Code-coverage' | ||
name: 'Report code coverage to coveralls' | ||
node_js: "12" | ||
before_script: yarn test # each stage gets a fresh environment: so need to run tests again here, to have coverage file | ||
script: yarn report-coverage | ||
|
||
- stage: 'Deploy' | ||
name: 'Deploy to docs and to npm' | ||
node_js: "12" | ||
# jobs in same stage will run in parallel: | ||
before_script: yarn build # each stage runs in a fresh environment | ||
script: yarn deploy-docs | ||
script: yarn semantic-release | ||
|
||
branches: | ||
except: | ||
- /^v\d+\.\d+\.\d+$/ |
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
Oops, something went wrong.