Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This refactors the build process and introduces a CI test framework.
Summary
Notes:
scripts/build_and_validate.sh
This script is the driver behind the refactor. Makes uses of a
builds/
where the details for the reference builds can customized, including which plugins are to be tested and which linux distributions are to be tested for each build.For example the alpine asset built is only tested against alpine, because it cannot be used with traditional linux distributions.
But the debian8 asset built is tested against all supported debian, ubuntu and centos targets (except centos6).
.bonsai.yml
The debian8 asset tarball is now the preferred build for all new linux targets that will be defined in the .bonsai.yml. The first step in adding any new linux target in the .bonsai.yml is to first test the debian8 build against that linux target's docker image. If debian8 build passes all the tests it can be used in the new .bonsai.yml definition with appropriate filters.
If debian8 tarball can't be testd to work, a new build platform can be added. Ex: centos6 build is provided explicitly because debian8 build will not work on centos6.