From 8a7ec4b4e30030b5443c86bc3f23306929502a96 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 31 Jul 2020 14:08:20 +0200 Subject: [PATCH] [ci] Avoid bundle warnings about --path --- .travis/before_install.sh | 4 +++- .travis/build-doc.sh | 1 + do-release.sh | 4 +++- docs/build-docs.sh | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis/before_install.sh b/.travis/before_install.sh index a417960361..a75a4d597b 100644 --- a/.travis/before_install.sh +++ b/.travis/before_install.sh @@ -15,7 +15,9 @@ bash .travis/install-openjdk.sh $OPENJDK_VERSION if travis_isLinux; then gem install bundler - bundle install --with=release_notes_preprocessing --path=vendor/bundle + bundle config set --local path vendor/bundle + bundle config set --local with release_notes_preprocessing + bundle install else log_info "Not setting up ruby for ${TRAVIS_OS_NAME}." exit 0 diff --git a/.travis/build-doc.sh b/.travis/build-doc.sh index 581fc64064..4ac8028b1d 100755 --- a/.travis/build-doc.sh +++ b/.travis/build-doc.sh @@ -88,6 +88,7 @@ function generate_jekyll_doc() { echo -e "\n\n" log_info "Building documentation using jekyll..." + bundle config set --local path vendor/bundle bundle install bundle exec jekyll build diff --git a/do-release.sh b/do-release.sh index 25d5785ed3..096ca28274 100755 --- a/do-release.sh +++ b/do-release.sh @@ -122,7 +122,9 @@ echo "Press enter to continue..." read # install bundles needed for rendering release notes -bundle install --with=release_notes_preprocessing --path vendor/bundle +bundle config set --local path vendor/bundle +bundle config set --local with release_notes_preprocessing +bundle install export RELEASE_NOTES_POST="_posts/$(date -u +%Y-%m-%d)-PMD-${RELEASE_VERSION}.md" echo "Generating ../pmd.github.io/${RELEASE_NOTES_POST}..." diff --git a/docs/build-docs.sh b/docs/build-docs.sh index b105603075..08b40fe884 100644 --- a/docs/build-docs.sh +++ b/docs/build-docs.sh @@ -1,3 +1,4 @@ -bundle install --path vendor/bundle +bundle config set --local path vendor/bundle +bundle install bundle update bundle exec jekyll build