From a8683e18a8c623120183d179902317296b3c78b2 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 6 Oct 2018 20:23:03 +0200 Subject: [PATCH] [ci] call pmdtester via bundler Since we are in a different directory than we were when installing the gems, we need to setup bundle path before. --- .travis/build-deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis/build-deploy.sh b/.travis/build-deploy.sh index fac52a56f8..2837115f7a 100755 --- a/.travis/build-deploy.sh +++ b/.travis/build-deploy.sh @@ -30,7 +30,8 @@ TRAVIS_COMMIT_RANGE=${TRAVIS_COMMIT_RANGE}" function upload_baseline() { log_info "Generating and uploading baseline for pmdtester..." cd .. - pmdtester -m single -r ./pmd -p ${TRAVIS_BRANCH} -pc ./pmd/.travis/all-java.xml -l ./pmd/.travis/project-list.xml -f + bundle config --local path pmd/vendor/bundle + bundle exec pmdtester -m single -r ./pmd -p ${TRAVIS_BRANCH} -pc ./pmd/.travis/all-java.xml -l ./pmd/.travis/project-list.xml -f cd target/reports BRANCH_FILENAME="${TRAVIS_BRANCH/\//_}" zip -q -r ${BRANCH_FILENAME}-baseline.zip ${BRANCH_FILENAME}/