From 8d5c2fe30b34b590f5f8e6d75974edb1fcfeea0f Mon Sep 17 00:00:00 2001 From: Paul Tremberth Date: Thu, 10 Jul 2014 13:44:32 +0200 Subject: [PATCH 1/2] Fix Travis CI config for conditional releases --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c2c5c1e9c..3652e856e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,4 +32,4 @@ deploy: tags: true all_branches: true repo: scrapy/scrapy - condition: "$TOXENV == py27 && $TRAVIS_TAG =~ ^[0-9]\.[0-9]*[02468]\." + condition: "$TOXENV == py27 && $TRAVIS_TAG =~ ^[0-9]\\.[0-9]*[02468]\\." From 6e04c0b388c49ae3e0073b6f79cdebc0eb376160 Mon Sep 17 00:00:00 2001 From: Paul Tremberth Date: Thu, 10 Jul 2014 14:54:08 +0200 Subject: [PATCH 2/2] Match dot using character class (avoids escaping headaches) --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3652e856e..78a0b4626 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,4 +32,4 @@ deploy: tags: true all_branches: true repo: scrapy/scrapy - condition: "$TOXENV == py27 && $TRAVIS_TAG =~ ^[0-9]\\.[0-9]*[02468]\\." + condition: "$TOXENV == py27 && $TRAVIS_TAG =~ ^[0-9][.][0-9]*[02468][.]"