.gitlab-ci.yml 1005 Bytes
Newer Older
Drew's avatar
Drew committed
1 2 3
types:
  - test

4 5 6
variables:
  XCSBOT: "6660d0a3ccbde71d961a5f232308a5bc"
  GITLAB_PROJECT_ID: "10"
Drew's avatar
Drew committed
7
  APP_NAME: "FISA"
8

Drew's avatar
Drew committed
9 10 11
xcs:
  type: test
  script:
Drew's avatar
Drew committed
12 13
    - "CJ=/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI"
    - "$CJ forceGitLabBranch --branchName CaveJohnsonAuto --hostname code.sealedabstract.com --projectID $GITLAB_PROJECT_ID"
14 15
    - "sleep 1" 
    - "XCSBUILDNO=`/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI xcsIntegrateNow --botID $XCSBOT --hostname localhost --sslPolicy localhost`"
Drew's avatar
Drew committed
16 17
    - "$CJ waitForIntegration --hostname localhost --botID $XCSBOT --sslPolicy localhost --buildNumber $XCSBUILDNO"
    - "$CJ xcsStatusToShell --hostname localhost --botID $XCSBOT --sslPolicy localhost --buildNumber $XCSBUILDNO"
Drew's avatar
Drew committed
18
    - "ZIPFILE=$($CJ getNameVersionString --infoPlistPath ${APP_NAME}/Info.plist --productName ${APP_NAME})-dev-${CI_BUILD_ID}.zip"
Drew's avatar
Drew committed
19
    - "mv /tmp/${APP_NAME}/out.zip /tmp/${APP_NAME}/$ZIPFILE"
Drew's avatar
Drew committed
20
  artifacts:
Drew's avatar
Drew committed
21
      paths:
Drew's avatar
Drew committed
22
      - /tmp/FISA
Drew's avatar
Drew committed
23 24
  only:
   - master
Drew's avatar
Drew committed
25