Skip to content

Commit

Permalink
ci: gem tests check generated gems and installation behavior
Browse files Browse the repository at this point in the history
using test-gem-file-contents and test-gem-installation
  • Loading branch information
flavorjones committed Dec 23, 2020
1 parent ae389fd commit 107cebc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions concourse/tasks/gem-test/gem-build-java.sh
Expand Up @@ -20,6 +20,10 @@ bundle exec rake set-version-to-timestamp

bundle exec rake java gem

if [ -e ./scripts/test-gem-file-contents ] ; then
./scripts/test-gem-file-contents pkg/nokogiri*java.gem
fi

mkdir -p ${OUTPUT_DIR}
cp -v pkg/nokogiri*java.gem ${OUTPUT_DIR}
sha256sum ${OUTPUT_DIR}/*
4 changes: 4 additions & 0 deletions concourse/tasks/gem-test/gem-build.sh
Expand Up @@ -32,6 +32,10 @@ else
bundle exec rake clean compile

bundle exec rake gem

if [ -e ./scripts/test-gem-file-contents ] ; then
./scripts/test-gem-file-contents pkg/nokogiri*.gem
fi
fi

mkdir -p ${OUTPUT_DIR}
Expand Down
4 changes: 4 additions & 0 deletions concourse/tasks/gem-test/gem-install-and-test.sh
Expand Up @@ -26,6 +26,10 @@ pushd nokogiri
bundle install --local || bundle install
bundle info nokogiri

if [ -e ./scripts/test-gem-installation ] ; then
./scripts/test-gem-installation
fi

bundle exec rake test:cmd > run-test
rm -rf lib ext # ensure we can't use the local files
bundle exec bash run-test
Expand Down

0 comments on commit 107cebc

Please sign in to comment.