Run travis build only when tagging
This commit is contained in:
parent
3c3598e8b1
commit
952927762a
1 changed files with 4 additions and 13 deletions
17
.travis.yml
17
.travis.yml
|
@ -3,48 +3,39 @@ dist: bionic
|
||||||
|
|
||||||
language: minimal
|
language: minimal
|
||||||
|
|
||||||
|
if: tag =~ /^v(\d)+(\.(\d)+){2}$/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
- name: Deploy
|
||||||
- name: CD
|
|
||||||
language: ruby
|
language: ruby
|
||||||
rvm: 2.7.0
|
rvm: 2.7.0
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
# required to avoid SSL error (for htmlproofer)
|
# required to avoid SSL error (for htmlproofer)
|
||||||
- libcurl4-openssl-dev
|
- libcurl4-openssl-dev
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $TRAVIS_BUILD_DIR/vendor/bundle
|
- $TRAVIS_BUILD_DIR/vendor/bundle
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# match the Gemfile.lock, travis' bundler is 2.1.2
|
# match the Gemfile.lock, travis' bundler is 2.1.2
|
||||||
- gem install bundler:2.2.4
|
- gem install bundler:2.2.4
|
||||||
- bundle config path 'vendor/bundle'
|
- bundle config path 'vendor/bundle'
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# overriding to drop the travis `--development` flag
|
# overriding to drop the travis `--development` flag
|
||||||
- bundle install --jobs=3 --retry=3
|
- bundle install --jobs=3 --retry=3
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- eval "$BUILD_CMD"
|
- eval "$BUILD_CMD"
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: false # for posts' lastmod
|
depth: false # for posts' lastmod
|
||||||
|
|
||||||
- name: Flush Starter
|
- name: Flush Starter
|
||||||
script:
|
script: eval "$FLUSH_STARTER"
|
||||||
- eval "$FLUSH_STARTER"
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
|
- git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
|
||||||
|
|
||||||
branches:
|
|
||||||
only: /.*-stable$/
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
recipients:
|
recipients:
|
||||||
|
|
Loading…
Reference in a new issue