Skip to content

Commit

Permalink
wip: skip dist on deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Apr 19, 2020
1 parent 54287e2 commit e877af5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ before_deploy:
stages:
- test # all tests
- name: deploy
if: branch = chore/travis-stage-x-2
# if: tag IS present AND branch = chore/travis-stage-x-2
if: tag IS present AND branch = chore/travis-stage-x-2

jobs:
include:
- &test
script: ./scripts/build.sh
node_js: "12"
node_js: "10"

- <<: *test
node_js: "10"
node_js: "12"

- <<: *test
node_js: "13"
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ "${TRAVIS_BUILD_STAGE_NAME}" =~ "publish" ]; then
echo "Skipping build for publish step"
if [ "${TRAVIS_BUILD_STAGE_NAME}" = "deploy" ]; then
echo "Skipping build for deploy step"
exit 0
fi

Expand Down

0 comments on commit e877af5

Please sign in to comment.