Travis: using the minimal environment when updating starter

This commit is contained in:
Cotes Chung 2022-01-19 17:22:29 +08:00
parent 166c05bcd1
commit 031e878620

View file

@ -3,8 +3,6 @@ dist: bionic
language: ruby language: ruby
rvm: 2.7.0 rvm: 2.7.0
before_script: git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
addons: addons:
apt: apt:
packages: packages:
@ -13,27 +11,30 @@ addons:
# Overriding to drop the `--development` flag which requires the Gemfile.lock at build # Overriding to drop the `--development` flag which requires the Gemfile.lock at build
install: bundle install --jobs=3 --retry=3 --path=vendor/bundle install: bundle install --jobs=3 --retry=3 --path=vendor/bundle
before_script: git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
jobs: jobs:
include: include:
- stage: Deploy - stage: Upgrade
git: git:
depth: false # for posts' lastmod depth: false # for posts' lastmod
script: eval "$BUILD_CMD" script: eval "$BUILD_CMD"
- stage: Flush Starter - stage: Starter
language: minimal
install: true # skip install step install: true # skip install step
script: eval "$FLUSH_STARTER" script: eval "$FLUSH_STARTER"
- stage: Update Docs - stage: Docs
cache: bundler cache: bundler
git: git:
depth: false # for posts' lastmod depth: false # for posts' lastmod
script: eval "$DOCS_CMD" script: eval "$DOCS_CMD"
stages: stages:
- name: Deploy - name: Upgrade
if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present
- name: Flush Starter - name: Starter
if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present
- name: Update Docs - name: Docs
if: branch = docs if: branch = docs
notifications: notifications: