Skip to content

Commit

Permalink
ci(travis): combine deploy to one stage
Browse files Browse the repository at this point in the history
  • Loading branch information
sharvit committed Aug 30, 2019
1 parent fa04f5b commit 50bb4a0
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
- mongodb
jobs:
include:
- stage: test
- stage: Test
node_js: 8
script: yarn test
- node_js: 10
Expand All @@ -12,24 +12,17 @@ jobs:
script:
- yarn lint:commit-travis
- yarn lint
- yarn build
- yarn test
after_success: yarn coveralls
- stage: release
- stage: Deploy
if: branch = master AND type = push
node_js: 12
script: yarn build:dist
deploy:
provider: script
skip_cleanup: true
script: yarn semantic-release
- stage: publish docs
if: branch = master AND type = push
node_js: 12
script: yarn build:docs
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ./docs
keep_history: true
- provider: script
skip_cleanup: true
script: yarn semantic-release
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ./docs
keep_history: true

0 comments on commit 50bb4a0

Please sign in to comment.