Update docs in real time
This commit is contained in:
parent
7788a140f2
commit
323a888160
1 changed files with 26 additions and 18 deletions
44
.travis.yml
44
.travis.yml
|
@ -1,32 +1,40 @@
|
||||||
os: linux
|
os: linux
|
||||||
dist: bionic
|
dist: bionic
|
||||||
|
language: ruby
|
||||||
|
rvm: 2.7.0
|
||||||
|
|
||||||
language: minimal
|
before_script: git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
|
||||||
|
|
||||||
# only run on tags
|
addons:
|
||||||
if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- name: Deploy
|
|
||||||
language: ruby
|
|
||||||
rvm: 2.7.0
|
|
||||||
addons:
|
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libcurl4-openssl-dev # to avoid SSL error (for htmlproofer)
|
- libcurl4-openssl-dev # to avoid SSL error (for htmlproofer)
|
||||||
install:
|
|
||||||
- bundle install --jobs=3 --retry=3 # overriding to drop the travis `--development` flag
|
# Overriding to drop the `--development` flag which requires the Gemfile.lock at build
|
||||||
script:
|
install: bundle install --jobs=3 --retry=3 --path=vendor/bundle
|
||||||
- eval "$BUILD_CMD"
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- stage: Deploy
|
||||||
git:
|
git:
|
||||||
depth: false # for posts' lastmod
|
depth: false # for posts' lastmod
|
||||||
|
script: eval "$BUILD_CMD"
|
||||||
- name: Flush Starter
|
- stage: Flush Starter
|
||||||
|
install: true # skip install step
|
||||||
script: eval "$FLUSH_STARTER"
|
script: eval "$FLUSH_STARTER"
|
||||||
|
- stage: Update Docs
|
||||||
|
cache: bundler
|
||||||
|
git:
|
||||||
|
depth: false # for posts' lastmod
|
||||||
|
script: eval "$DOCS_CMD"
|
||||||
|
|
||||||
before_script:
|
stages:
|
||||||
- git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
|
- name: Deploy
|
||||||
|
if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present
|
||||||
|
- name: Flush Starter
|
||||||
|
if: branch =~ /^v(\d)+(\.(\d)+){2}$/ OR tag IS present
|
||||||
|
- name: Update Docs
|
||||||
|
if: branch = docs
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|
Loading…
Reference in a new issue