mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-25 06:43:24 +03:00
Extend build script
This commit is contained in:
parent
07b2dc4e83
commit
68c7b030aa
@ -4,6 +4,9 @@ set -e
|
||||
|
||||
export PATH=/usr/local/bin:$PATH
|
||||
|
||||
# delete all (local) tags
|
||||
git tag | xargs git tag -d
|
||||
|
||||
# delete all (local) branches
|
||||
git for-each-ref --format="%(refname:strip=2)" refs/heads/ | xargs git branch -D
|
||||
git checkout -b build_snapshot
|
||||
@ -30,15 +33,17 @@ xcodebuild CODE_SIGN_IDENTITY="Developer ID Application: Tae Won Ha (H96Q2NKTQH)
|
||||
|
||||
CUR_MARKETING_VERSION=$(./bin/current_marketing_version.sh)
|
||||
CUR_BUNDLE_VERSION=$(./bin/current_bundle_version.sh)
|
||||
RELEASE_VERSION="$CUR_MARKETING_VERSION-$CUR_BUNDLE_VERSION"
|
||||
SNAPSHOT_DATE=$(date +%Y%m%d.%H%M)
|
||||
TAG_NAME=snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
||||
|
||||
git commit -am "Set snapshot version: $CUR_MARKETING_VERSION-$CUR_BUNDLE_VERSION"
|
||||
git commit -am "Set snapshot version: $RELEASE_VERSION"
|
||||
git tag -a -m "$CUR_MARKETING_VERSION ($CUR_BUNDLE_VERSION)" snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
||||
|
||||
pushd build/Release
|
||||
tar cjf VimR-${CUR_MARKETING_VERSION}.tar.bz2 VimR.app
|
||||
tar cjf SwiftNeoVim.framework-${CUR_MARKETING_VERSION}.tar.bz2 SwiftNeoVim.framework
|
||||
tar cjf VimR-${RELEASE_VERSION}.tar.bz2 VimR.app
|
||||
tar cjf SwiftNeoVim.framework-${RELEASE_VERSION}.tar.bz2 SwiftNeoVim.framework
|
||||
echo ${RELEASE_VERSION} > "$RELEASE_VERSION"
|
||||
popd
|
||||
|
||||
git push origin HEAD:${BRANCH}
|
||||
|
@ -1,11 +1,20 @@
|
||||
// Install the following plugins in addition to recommended plugins when installing Jenkins
|
||||
// - Job DSL
|
||||
// - AnsiColor
|
||||
//
|
||||
// And set the "Markup Formatter" in "Manage Jenkins -> Configure Global Security" to "Safe HTML".
|
||||
|
||||
def buildSnapshotJob = freeStyleJob('vimr_build_snapshot')
|
||||
|
||||
buildSnapshotJob.with {
|
||||
description 'Builds a new snapshot of VimR and pushes the tag'
|
||||
description '''\
|
||||
Builds a new snapshot of VimR and pushes the tag:<br>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="lastSuccessfulBuild/artifact/build/Release/">Last successful Release</a>
|
||||
</li>
|
||||
</ul>
|
||||
'''
|
||||
|
||||
logRotator {
|
||||
numToKeep(30)
|
||||
|
Loading…
Reference in New Issue
Block a user