Commit 71d846f1 authored by Drew's avatar Drew

Modernize build

See #2
parent 15b59c05
Pipeline #594 failed with stages
types:
- test
- package
variables:
XCSBOT: "31b0b0bb4b62ed4d8a5f6eccaf4d6edd"
GITLAB_PROJECT_ID: "17"
FRAMEWORK_NAME: "SynchronousRequestKit"
xcs:
type: test
......@@ -11,9 +13,30 @@ xcs:
- "/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI forceGitLabBranch --branchName CaveJohnsonAuto --hostname code.sealedabstract.com --projectID $GITLAB_PROJECT_ID"
- "sleep 1"
- "XCSBUILDNO=`/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI xcsIntegrateNow --botID $XCSBOT --hostname localhost --sslPolicy localhost`"
- "echo XCS BUILDNO $XCSBUILDNO"
- "/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI waitForIntegration --hostname localhost --botID $XCSBOT --sslPolicy localhost --buildNumber $XCSBUILDNO"
- "/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI xcsStatusToShell --hostname localhost --botID $XCSBOT --sslPolicy localhost --buildNumber $XCSBUILDNO"
only:
- master
tags:
- xc7
\ No newline at end of file
- xc7
archive:
type: package
script:
- "CJ=/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI"
- "CARTHAGE=/usr/local/bin/carthage"
- "$CJ setVersion --infoPlistPath $FRAMEWORK_NAME/Info.plist --version ${CI_BUILD_ID}"
- "$CARTHAGE build --no-skip-current"
- "$CARTHAGE archive $FRAMEWORK_NAME"
- "ZIPFILE=$($CJ getNameVersionString --infoPlistPath $FRAMEWORK_NAME/Info.plist --productName $FRAMEWORK_NAME)-dev-${CI_BUILD_ID}.zip"
- "rm -rf /tmp/$FRAMEWORK_NAME/"
- "mkdir -p /tmp/$FRAMEWORK_NAME"
- "mv $FRAMEWORK_NAME.framework.zip /tmp/$FRAMEWORK_NAME/$ZIPFILE"
only:
- master
artifacts:
paths:
- /tmp/SynchronousRequestKit/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment