Skip to content

Commit

Permalink
Fix travis release condition
Browse files Browse the repository at this point in the history
Travis pulls tag as branch, so 'branch = master' is never true.
Use same regexp as earlier build.sh did
  • Loading branch information
mcspr authored Jul 10, 2018
1 parent c16b380 commit 9fdf217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: python
python:
- '2.7'
sudo: false
conditions: v1
cache:
directories:
- "~/.npm"
Expand All @@ -19,7 +20,7 @@ script:
stages:
- name: Test
- name: Release
if: tag IS present AND branch = master
if: tag IS present AND tag =~ ^\d+\.\d+\.\d+$
jobs:
include:
- stage: Test
Expand All @@ -42,7 +43,6 @@ deploy:
skip_cleanup: true
on:
tags: true
branch: master
repo: xoseperez/espurna
condition: $TRAVIS_BUILD_STAGE_NAME = Release
notifications:
Expand Down

0 comments on commit 9fdf217

Please sign in to comment.