[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.
This commit is contained in:
Andreas Dangel
2018-10-06 20:23:03 +02:00
parent c48ed19397
commit a8683e18a8

View File

@ -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}/