Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Test and distribute an iOS app with Gitlab CI

Test and distribute an iOS app with Gitlab CI

Cocoaheads Paris, November 2017

Adrien Humilière

November 09, 2017
Tweet

More Decks by Adrien Humilière

Other Decks in Programming

Transcript

  1. +

  2. Open source Source control & CI in the same place

    CI config versionned with Git .gitlab-ci.yml
  3. archive:debug: stage: archive script: - agvtool new-version -all $(agvtool vers

    -terse). $CI_PIPELINE_ID - xcodebuild -scheme "$DEBUG_SCHEME" -archivePath build/CapitaineTrain-${CI_COMMIT_SHA} archive only: - dev@capitainetrain/ios dev branch
  4. package: stage: package script: - xcodebuild -exportArchive -archivePath $ARCHIVE -

    exportOptionsPlist export-options.plist -exportPath build only: - dev@capitainetrain/ios - master@capitainetrain/ios
  5. deploy:itunes_connect: stage: deploy script: - altool --upload-app -f "${IPA}" -u

    "${CAT_ITC_USERNAME}" -p "${CAT_ITC_PASSWORD}" only: - dev@capitainetrain/ios - master@capitainetrain/ios