Give travis a new job: monitor the starter files

This commit is contained in:
Cotes Chung 2021-02-04 03:15:20 +08:00
parent 4faa595b04
commit 2bcaabdab4
1 changed files with 34 additions and 20 deletions

View File

@ -1,36 +1,50 @@
os: linux os: linux
dist: bionic dist: bionic
language: ruby language: minimal
rvm: 2.7.0
cache: jobs:
directories: include:
- $TRAVIS_BUILD_DIR/vendor/bundle
before_install: - name: CD
- gem install bundler:2.2.4 # match the Gemfile.lock, travis' bundle is 2.1.2 language: ruby
- bundle config path 'vendor/bundle' rvm: 2.7.0
install: addons:
# overriding to drop the travis `--development` flag apt:
- bundle install --jobs=3 --retry=3 packages:
# required to avoid SSL error (for htmlproofer)
- libcurl4-openssl-dev
addons: cache:
apt: directories:
packages: - $TRAVIS_BUILD_DIR/vendor/bundle
- libcurl4-openssl-dev # required to avoid SSL error (for htmlproofer)
script: before_install:
# match the Gemfile.lock, travis' bundler is 2.1.2
- gem install bundler:2.2.4
- bundle config path 'vendor/bundle'
install:
# overriding to drop the travis `--development` flag
- bundle install --jobs=3 --retry=3
script:
- eval "$BUILD_CMD"
git:
depth: false # for posts' lastmod
- name: Flush Starter
script:
- eval "$FLUSH_STARTER"
before_script:
- git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q - git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
- eval "$BUILD_CMD"
branches: branches:
only: /.*-stable$/ only: /.*-stable$/
git:
depth: false # for posts lastmod
notifications: notifications:
email: email:
recipients: recipients: