Skip to content

Commit b2beaa0

Browse files
committed
Update travis settings for release-branches
- drop the deprecated flag `--deployment` of bundle (so we have to specify the bundler caching path)
1 parent 83a7878 commit b2beaa0

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.travis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@ dist: bionic
44
language: ruby
55
rvm: 2.7.0
66

7-
cache: bundler
7+
cache:
8+
directories:
9+
- $TRAVIS_BUILD_DIR/vendor/bundle
10+
11+
before_install:
12+
- gem install bundler:2.2.4 # match the Gemfile.lock, travis' bundle is 2.1.2
13+
- bundle config path 'vendor/bundle'
14+
15+
install:
16+
# overriding to drop the travis `--development` flag
17+
- bundle install --jobs=3 --retry=3
818

919
addons:
1020
apt:
1121
packages:
12-
- libcurl4-openssl-dev # required to avoid SSL error (for htmlproofer)
22+
- libcurl4-openssl-dev # required to avoid SSL error (for htmlproofer)
1323

1424
script:
1525
- git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
1626
- eval "$BUILD_CMD"
1727

1828
branches:
19-
only: production
29+
only: /.*-stable$/
2030

2131
git:
2232
depth: false # for posts lastmod

0 commit comments

Comments
 (0)