Update travis: deploy only when tagging
The bundler cache is also disabled because the tag name is always changing
This commit is contained in:
parent
97ae2bf6c0
commit
67bd6679b9
1 changed files with 5 additions and 15 deletions
18
.travis.yml
18
.travis.yml
|
@ -3,9 +3,8 @@ dist: bionic
|
||||||
|
|
||||||
language: minimal
|
language: minimal
|
||||||
|
|
||||||
branches:
|
# only run on tags
|
||||||
only:
|
if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present
|
||||||
- /^release\/(\d)+(\.(\d)+){1}$/
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
@ -15,18 +14,9 @@ jobs:
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
# required to avoid SSL error (for htmlproofer)
|
- libcurl4-openssl-dev # to avoid SSL error (for htmlproofer)
|
||||||
- libcurl4-openssl-dev
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $TRAVIS_BUILD_DIR/vendor/bundle
|
|
||||||
before_install:
|
|
||||||
# match the Gemfile.lock, travis' bundler is 2.1.2
|
|
||||||
- gem install bundler:2.2.4
|
|
||||||
- bundle config path 'vendor/bundle'
|
|
||||||
install:
|
install:
|
||||||
# overriding to drop the travis `--development` flag
|
- bundle install --jobs=3 --retry=3 # overriding to drop the travis `--development` flag
|
||||||
- bundle install --jobs=3 --retry=3
|
|
||||||
script:
|
script:
|
||||||
- eval "$BUILD_CMD"
|
- eval "$BUILD_CMD"
|
||||||
git:
|
git:
|
||||||
|
|
Loading…
Reference in a new issue