Advertisement
Guest User

Untitled

a guest
May 6th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. variables:
  2. ITUNESCONNECT_USER: "user@user.com"
  3. ITUNESCONNECT_PASS: ""
  4.  
  5. stages:
  6. - archive
  7.  
  8. archive_project:
  9. stage: archive
  10. script:
  11. - echo "Runing testing..."
  12. - xcodebuild test -workspace <Project_Name>.xcworkspace -scheme <tests_Schema_Name> -destination 'platform=iOS Simulator,name=iPhone 8' -quiet
  13. - echo "Archiving..."
  14. - xcodebuild -workspace <Project_Name>.xcworkspace -scheme <release_Schema_Name> clean archive -configuration <release_configuration> -sdk iphoneos -archivePath $PWD/build/<Project_Name>.xcarchive -quiet
  15. - echo "Exporting IPA..."
  16. - xcodebuild -exportArchive -archivePath $PWD/build/<Project_Name>.xcarchive -exportOptionsPlist $PWD/build/exportOptions.plist -exportPath $PWD/build/<Project_Name>.ipa -quiet
  17. - echo "Uploading to AppStore..."
  18. - altool --upload-app -f $PWD/build/<Project_Name>.ipa/<Project_Name>.ipa -u ${ITUNESCONNECT_USER} -p ${ITUNESCONNECT_PASS} -quiet
  19. - echo "YEAH!"
  20. only:
  21. - tags
  22. except:
  23. - branches
  24. tags:
  25. - ios_12-2
  26. - xcode_10-2-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement