Skip to content

Commit

Permalink
Merge pull request #1896 from ArturKlauser/travis-deploy-stage-fix
Browse files Browse the repository at this point in the history
Run "deploy" step only for "Build" stages
  • Loading branch information
koalaman authored Apr 2, 2020
2 parents a9c04e8 + a128796 commit 555f8a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
script:
- source ./.multi_arch_docker
- set -ex; multi_arch_docker::main; set +x
- mkdir deploy

# This is in global context and runs for every stage that doesn't override it.
before_install: |
DOCKER_BASE="$DOCKER_USERNAME/shellcheck"
DOCKER_BUILDS=""
Expand All @@ -32,6 +32,7 @@ before_install: |
test -n "$TRAVIS_TAG" && TAGS="$TAGS stable $TRAVIS_TAG" || true
echo "Tags are $TAGS"
# This is in global context and runs for every stage that doesn't override it.
script:
- mkdir -p deploy
- source ./.compile_binaries
Expand All @@ -40,13 +41,15 @@ script:
- ./.prepare_deploy
- ./.github_deploy

# This is in global context and runs for every stage that doesn't override it.
after_failure: |
id
pwd
df -h
find . -name '*.log' -type f -exec grep "" /dev/null {} +
find . -ls
# This is in global context and runs for every stage that doesn't override it.
deploy:
provider: gcs
skip_cleanup: true
Expand All @@ -57,4 +60,5 @@ deploy:
local_dir: deploy
on:
repo: koalaman/shellcheck
condition: $TRAVIS_BUILD_STAGE_NAME = Build
all_branches: true

0 comments on commit 555f8a8

Please sign in to comment.