Skip to content

Commit a41b491

Browse files
committed
Update travis: deploy only when tagging
The bundler cache is also disabled because the tag name is always changing
1 parent d098ddb commit a41b491

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.travis.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ dist: bionic
33

44
language: minimal
55

6-
branches:
7-
only:
8-
- /^release\/(\d)+(\.(\d)+){1}$/
6+
# only run on tags
7+
if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present
98

109
jobs:
1110
include:
@@ -15,22 +14,13 @@ jobs:
1514
addons:
1615
apt:
1716
packages:
18-
# required to avoid SSL error (for htmlproofer)
19-
- libcurl4-openssl-dev
20-
cache:
21-
directories:
22-
- $TRAVIS_BUILD_DIR/vendor/bundle
23-
before_install:
24-
# match the Gemfile.lock, travis' bundler is 2.1.2
25-
- gem install bundler:2.2.4
26-
- bundle config path 'vendor/bundle'
17+
- libcurl4-openssl-dev # to avoid SSL error (for htmlproofer)
2718
install:
28-
# overriding to drop the travis `--development` flag
29-
- bundle install --jobs=3 --retry=3
19+
- bundle install --jobs=3 --retry=3 # overriding to drop the travis `--development` flag
3020
script:
3121
- eval "$BUILD_CMD"
3222
git:
33-
depth: false # for posts' lastmod
23+
depth: false # for posts' lastmod
3424

3525
- name: Flush Starter
3626
script: eval "$FLUSH_STARTER"

0 commit comments

Comments
 (0)