Commit 5ff06d25 authored by Drew's avatar Drew

update gitlab-ci

parent 3d8daaeb
Pipeline #608 passed with stages
......@@ -4,10 +4,12 @@ types:
variables:
XCSBOT: "fc03b092ecd597b3488984a34d029eec"
XCSBOT_IOS: "fc03b092ecd597b3488984a34d029eec"
GITLAB_PROJECT_ID: "9"
FRAMEWORK_NAME: "NaOH"
xcs:
testMac:
type: test
script:
- "/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI forceGitLabBranch --branchName CaveJohnsonAuto --hostname code.sealedabstract.com --projectID $GITLAB_PROJECT_ID"
......@@ -21,13 +23,27 @@ xcs:
tags:
- xc7
archive:
testiOS:
type: test
script:
- "/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_IOS --hostname localhost --sslPolicy localhost`"
- "echo XCS BUILDNO $XCSBUILDNO"
- "/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI waitForIntegration --hostname localhost --botID $XCSBOT_IOS --sslPolicy localhost --buildNumber $XCSBUILDNO"
- "/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI xcsStatusToShell --hostname localhost --botID $XCSBOT_IOS --sslPolicy localhost --buildNumber $XCSBUILDNO"
only:
- master
tags:
- xc7
archiveiOS:
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 build --no-skip-current --platform ios"
- "$CARTHAGE archive $FRAMEWORK_NAME"
- "ZIPFILE=$($CJ getNameVersionString --infoPlistPath $FRAMEWORK_NAME/Info.plist --productName $FRAMEWORK_NAME)-dev-${CI_BUILD_ID}.zip"
......@@ -37,6 +53,26 @@ archive:
only:
- master
artifacts:
paths:
- /tmp/NaOH/
archiveMac:
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 --platform osx"
- "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/NaOH/
\ 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