.gitlab-ci.yml 1.43 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 8
variables:
  XCSBOT: "fc03b092ecd597b3488984a34d029eec"
  GITLAB_PROJECT_ID: "9"

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

Drew's avatar
Drew committed
22
package:
Drew's avatar
Drew committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
   type: package
   script:
      - "ls"
      - "CJ=/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI"
      - "CARTHAGE=/usr/local/bin/carthage"
      - "$CJ setVersion --infoPlistPath NaOH/NaOH/Info.plist"
      - "$CARTHAGE build --no-skip-current"
      - "$CARTHAGE archive NaOH"

      - "ZIPFILE=$($CJ getNameVersionString --infoPlistPath NaOH/NaOH/Info.plist --productName NaOH)-dev-${CI_BUILD_ID}.zip"
      - "rm -rf /tmp/NaOH/"
      - "mkdir -p /tmp/NaOH"
      - "mv NaOH.framework.zip /tmp/NaOH/$ZIPFILE"

    artifacts:
      paths:
      - /tmp/NaOH/