Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(travis: fix deployment condition to include tagged commits #16346

Merged
merged 2 commits into from
Nov 29, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ notifications:
jobs:
include:
- stage: deploy
# Don't deploy from PRs and only from our default branches.
# Don't deploy from PRs and only from our default branches, or if tag exists
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This three part sentence is a bit ambiguous. Perhaps:

Don't deploy from PRs. Only from our default branches or if tag exists.

# This is a Travis-specific boolean language: https://docs.travis-ci.com/user/conditional-builds-stages-jobs#Specifying-conditions
# The deployment logic for pushed branches is further defined in scripts\travis\build.sh
if: type != pull_request and branch =~ ^(v1\.\d+\.x|master)$
if: type != pull_request and (branch =~ ^(v1\.\d+\.x|master)$ or tag IS present)
env:
- JOB=deploy
before_script: skip
Expand Down