Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
fix: 🐛 Make separated scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
manhhailua committed Aug 20, 2019
1 parent dc0781b commit 7500d2f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ cache:
jobs:
include:
- stage: test
script:
- yarn lint
- yarn flow
- yarn test --coverage
script: sh scripts/test.sh
- stage: prepare
script: sh scripts/deploy.sh --branch=$TRAVIS_PULL_REQUEST_BRANCH
- stage: release
script: skip
deploy:
provider: script
skip_cleanup: true
script:
- yarn build
- yarn semantic-release
script: sh scripts/deploy.sh

stages:
- name: test
- name: prepare
- name: release
if: branch = master

Expand Down
3 changes: 3 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
yarn build
yarn semantic-release $1
4 changes: 4 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
yarn lint
yarn flow
yarn test --coverage

0 comments on commit 7500d2f

Please sign in to comment.