.gitlab-ci.yml 1.56 KB
Newer Older
Drew's avatar
Drew committed
1 2
types:
  - test
Drew's avatar
Drew committed
3
  - package
Drew's avatar
Drew committed
4

5 6 7
variables:
  XCSBOT: "fc03b092ecd597b3488984a34d029eec"
  GITLAB_PROJECT_ID: "9"
Drew's avatar
Drew committed
8
  FRAMEWORK_NAME: "NaOH"
9

Drew's avatar
Drew committed
10 11 12
xcs:
  type: test
  script:
13 14 15 16 17
    - "/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`"
    - "/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"
Drew's avatar
Drew committed
18 19 20
  only:
    - master
  tags:
Drew's avatar
Drew committed
21
    - xc7
Drew's avatar
Drew committed
22

Drew's avatar
Drew committed
23
archive:
Drew's avatar
Drew committed
24 25 26 27
   type: package
   script:
      - "CJ=/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI"
      - "CARTHAGE=/usr/local/bin/carthage"
Drew's avatar
Drew committed
28
      - "$CJ setVersion --infoPlistPath $FRAMEWORK_NAME/Info.plist --version ${CI_BUILD_ID}"
Drew's avatar
Drew committed
29
      - "$CARTHAGE build --no-skip-current"
Drew's avatar
Drew committed
30
      - "$CARTHAGE archive $FRAMEWORK_NAME"
Drew's avatar
Drew committed
31

Drew's avatar
Drew committed
32 33 34 35
      - "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"
Drew's avatar
Drew committed
36 37
   only:
    - master
Drew's avatar
Drew committed
38

Drew's avatar
Drew committed
39
   artifacts:
Drew's avatar
Drew committed
40 41
      paths:
      - /tmp/NaOH/