From b2beaa0f4ca334e45bbb6c045f1e203336820679 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 3 Feb 2021 00:26:29 +0800 Subject: [PATCH] Update travis settings for release-branches - drop the deprecated flag `--deployment` of bundle (so we have to specify the bundler caching path) --- .travis.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b1bdcca..bbe7960 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,19 +4,29 @@ dist: bionic language: ruby rvm: 2.7.0 -cache: bundler +cache: + directories: + - $TRAVIS_BUILD_DIR/vendor/bundle + +before_install: + - gem install bundler:2.2.4 # match the Gemfile.lock, travis' bundle is 2.1.2 + - bundle config path 'vendor/bundle' + +install: + # overriding to drop the travis `--development` flag + - bundle install --jobs=3 --retry=3 addons: apt: packages: - - libcurl4-openssl-dev # required to avoid SSL error (for htmlproofer) + - libcurl4-openssl-dev # required to avoid SSL error (for htmlproofer) script: - git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q - eval "$BUILD_CMD" branches: - only: production + only: /.*-stable$/ git: depth: false # for posts lastmod