Skip to content

Commit

Permalink
build: migrate to Travis build-stages
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Mar 2, 2018
1 parent f6c81f9 commit 4f9b973
Showing 1 changed file with 35 additions and 29 deletions.
64 changes: 35 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,38 @@ node_js:

# run install twice. flaky npm behavior
# https://github.com/GitbookIO/gitbook/issues/1834
script:
- yarn test
- yarn docs:prepare && yarn docs:build
- yarn standalone
deploy:
- provider: npm
email: "jondotan@gmail.com"
api_key:
secure: fGqPo4don8YwuxgM/QR68RvnSD38prYHqjWyXfdYTFi5xcVvUllIO/REtbQb0X1scbCP4WlvDVYQ7iCH/eh7uXM40RO0B+KSrHOUgngKtLKF104IRLZ48U4qkrJqB+VBxXHpqe2dlQyyOU4Z0RdcSI838EN7WSP802tWC4R/Vsg3B+E/gILnzjGX4dGFdHIqTOpMpcgchQRcfXIkHpFfQWF2Ww6NFwQ5aZzhmXPOxAt9AaaIwrNoNcndh+AqshDVgZzy2+S4NtPLEaEz7YdqqogkFoG1ma+oj4ZM/MhfESYowZYLqo7iqtGFN6RGxoivTUBWwakMz9/2ELrstKD7rtT3U7Et5HSt05sRnHXgNPTSYylnZJXbgprgT/gP9rhdQAMVZS2x6fX/WG4+ifIUG78ZWLLFfMMDn6OhRzbiJsHNMrXkxgg0vuMMU6gMriNHwNsA5Tva2wvuklrqr0nBA3+7YchczQspS+akKHIDI3fXxgBTJNXlqRuz1lWfN26hNxVOzBdmxPIsfwnYC703pc46iPPrpWp5wREjKJfxy85BSvCPO8K1/T7O4CnpIlgcVIGBtVopnhoKXQNVEbiEyiU3I2vyTthgK2ieJtacsu6EeQ2zCgAC73n/9W+nexu9zXvBK7lZSIHgoDByHCKuqBY0LIwrsLg7WRA46wn/VIk=
on:
node: "8"
tags: true
skip_cleanup: true
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: standalone/*
skip_cleanup: true
on:
node: "8"
tags: true
- provider: pages
local-dir: hygen.io/public
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
node: "8"
branch: master
script: yarn test

jobs:
include:
- stage: npm
node_js: "8"
deploy:
provider: npm
script: yarn build
email: "jondotan@gmail.com"
api_key:
secure: fGqPo4don8YwuxgM/QR68RvnSD38prYHqjWyXfdYTFi5xcVvUllIO/REtbQb0X1scbCP4WlvDVYQ7iCH/eh7uXM40RO0B+KSrHOUgngKtLKF104IRLZ48U4qkrJqB+VBxXHpqe2dlQyyOU4Z0RdcSI838EN7WSP802tWC4R/Vsg3B+E/gILnzjGX4dGFdHIqTOpMpcgchQRcfXIkHpFfQWF2Ww6NFwQ5aZzhmXPOxAt9AaaIwrNoNcndh+AqshDVgZzy2+S4NtPLEaEz7YdqqogkFoG1ma+oj4ZM/MhfESYowZYLqo7iqtGFN6RGxoivTUBWwakMz9/2ELrstKD7rtT3U7Et5HSt05sRnHXgNPTSYylnZJXbgprgT/gP9rhdQAMVZS2x6fX/WG4+ifIUG78ZWLLFfMMDn6OhRzbiJsHNMrXkxgg0vuMMU6gMriNHwNsA5Tva2wvuklrqr0nBA3+7YchczQspS+akKHIDI3fXxgBTJNXlqRuz1lWfN26hNxVOzBdmxPIsfwnYC703pc46iPPrpWp5wREjKJfxy85BSvCPO8K1/T7O4CnpIlgcVIGBtVopnhoKXQNVEbiEyiU3I2vyTthgK2ieJtacsu6EeQ2zCgAC73n/9W+nexu9zXvBK7lZSIHgoDByHCKuqBY0LIwrsLg7WRA46wn/VIk=
on:
tags: true
skip_cleanup: true
- stage: docs
script: yarn docs:prepare && yarn docs:build
node_js: "8"
deploy:
provider: pages
local-dir: hygen.io/public
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
- stage: binary releases
script: yarn standalone
node_js: "8"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: standalone/*
skip_cleanup: true
on:
tags: true

0 comments on commit 4f9b973

Please sign in to comment.