From 2bcaabdab42d5fcccc0775e1515f20fd720f5a7a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 4 Feb 2021 03:15:20 +0800 Subject: [PATCH] Give travis a new job: monitor the starter files --- .travis.yml | 54 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index bbe7960..f242a41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,36 +1,50 @@ os: linux dist: bionic -language: ruby -rvm: 2.7.0 +language: minimal -cache: - directories: - - $TRAVIS_BUILD_DIR/vendor/bundle +jobs: + include: -before_install: - - gem install bundler:2.2.4 # match the Gemfile.lock, travis' bundle is 2.1.2 - - bundle config path 'vendor/bundle' + - name: CD + language: ruby + rvm: 2.7.0 -install: - # overriding to drop the travis `--development` flag - - bundle install --jobs=3 --retry=3 + addons: + apt: + packages: + # required to avoid SSL error (for htmlproofer) + - libcurl4-openssl-dev -addons: - apt: - packages: - - libcurl4-openssl-dev # required to avoid SSL error (for htmlproofer) + cache: + directories: + - $TRAVIS_BUILD_DIR/vendor/bundle -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 - - eval "$BUILD_CMD" branches: only: /.*-stable$/ -git: - depth: false # for posts lastmod - notifications: email: recipients: