Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- ITUNESCONNECT_USER: "user@user.com"
- ITUNESCONNECT_PASS: ""
- stages:
- - archive
- archive_project:
- stage: archive
- script:
- - echo "Runing testing..."
- - xcodebuild test -workspace <Project_Name>.xcworkspace -scheme <tests_Schema_Name> -destination 'platform=iOS Simulator,name=iPhone 8' -quiet
- - echo "Archiving..."
- - xcodebuild -workspace <Project_Name>.xcworkspace -scheme <release_Schema_Name> clean archive -configuration <release_configuration> -sdk iphoneos -archivePath $PWD/build/<Project_Name>.xcarchive -quiet
- - echo "Exporting IPA..."
- - xcodebuild -exportArchive -archivePath $PWD/build/<Project_Name>.xcarchive -exportOptionsPlist $PWD/build/exportOptions.plist -exportPath $PWD/build/<Project_Name>.ipa -quiet
- - echo "Uploading to AppStore..."
- - altool --upload-app -f $PWD/build/<Project_Name>.ipa/<Project_Name>.ipa -u ${ITUNESCONNECT_USER} -p ${ITUNESCONNECT_PASS} -quiet
- - echo "YEAH!"
- only:
- - tags
- except:
- - branches
- tags:
- - ios_12-2
- - xcode_10-2-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement