Improvements to build.py:
- Now uses Python argparse for cleaner handling of arguments - Added function documentation - Removed a few unneeded functions - Updated nightly logic to incremement minor version - Added support for building from specific branch or commit - Changed --no-stash option to --no-uncommitted for clarity - Added a --release flag, default package output will now contain the branch and commit hash in the version number - Static builds are now listed as an architecture - Changed default upload bucket to dl.influxdata.com/telegraf - Don't include iteration in package name
This commit is contained in:
parent
1390c22004
commit
351e168355
931
scripts/build.py
931
scripts/build.py
File diff suppressed because it is too large
Load Diff
|
@ -75,8 +75,9 @@ if [ $? -eq 0 ]; then
|
||||||
unset GOGC
|
unset GOGC
|
||||||
tag=$(git describe --exact-match HEAD)
|
tag=$(git describe --exact-match HEAD)
|
||||||
echo $tag
|
echo $tag
|
||||||
exit_if_fail ./scripts/build.py --package --version=$tag --platform=linux --arch=all --upload
|
exit_if_fail ./scripts/build.py --release --package --version=$tag --platform=all --arch=all --upload --bucket=dl.influxdata.com/telegraf/releases
|
||||||
exit_if_fail ./scripts/build.py --package --version=$tag --platform=windows --arch=all --upload
|
|
||||||
exit_if_fail ./scripts/build.py --package --version=$tag --platform=freebsd --arch=all --upload
|
|
||||||
mv build $CIRCLE_ARTIFACTS
|
mv build $CIRCLE_ARTIFACTS
|
||||||
|
else
|
||||||
|
# Upload Linux build artifact to S3
|
||||||
|
./scripts/build.py --package --upload
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue