Skip to content

Commit

Permalink
chore: add deploy stage to TravisCI config (carbon-design-system#370)
Browse files Browse the repository at this point in the history
* chore: add deploy stage to TravisCI config

* chore: update to use latest yarn and run tests on one core

* chore: revert changes to prod config
  • Loading branch information
joshblack authored Dec 1, 2017
1 parent 184bcf0 commit 8aab03a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ cache:
notifications:
email: false

before_install: yarn global add greenkeeper-lockfile@1
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add greenkeeper-lockfile@1

before_script: greenkeeper-lockfile-update

Expand All @@ -23,6 +26,16 @@ after_script: greenkeeper-lockfile-upload
after_success:
- yarn semantic-release

branches:
before_deploy:
- yarn build-storybook

deploy:
skip_cleanup: true
provider: cloudfoundry
username: apikey
password: $CLOUD_API_KEY
api: https://api.ng.bluemix.net
organization: carbon-design-system
space: production
on:
branch: master
2 changes: 1 addition & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ applications:
root: storybook-static
routes:
- route: carbon-react-storybook.mybluemix.net
- route: react.carbondesignsystem.com
- route: react.carbondesignsystem.com
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "node scripts/build.js",
"build-storybook": "build-storybook",
"ci-check": "yarn prettier:diff && yarn lint && yarn test && yarn test-ssr",
"ci-check": "yarn prettier:diff && yarn lint && yarn test --runInBand && yarn test-ssr",
"commitmsg": "validate-commit-msg",
"lint": "eslint src",
"precommit": "lint-staged",
Expand Down

0 comments on commit 8aab03a

Please sign in to comment.