Browse Source

Fix travis release condition

Travis pulls tag as branch, so 'branch = master' is never true.
Use same regexp as earlier build.sh did
rtc
Max Prokhorov 6 years ago
committed by GitHub
parent
commit
9fdf217203
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      .travis.yml

+ 2
- 2
.travis.yml View File

@ -2,6 +2,7 @@ language: python
python: python:
- '2.7' - '2.7'
sudo: false sudo: false
conditions: v1
cache: cache:
directories: directories:
- "~/.npm" - "~/.npm"
@ -19,7 +20,7 @@ script:
stages: stages:
- name: Test - name: Test
- name: Release - name: Release
if: tag IS present AND branch = master
if: tag IS present AND tag =~ ^\d+\.\d+\.\d+$
jobs: jobs:
include: include:
- stage: Test - stage: Test
@ -42,7 +43,6 @@ deploy:
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true
branch: master
repo: xoseperez/espurna repo: xoseperez/espurna
condition: $TRAVIS_BUILD_STAGE_NAME = Release condition: $TRAVIS_BUILD_STAGE_NAME = Release
notifications: notifications:


Loading…
Cancel
Save