Ideas or code sources:
https://www.raywenderlich.com/2841-beginning-automated-testing-with-xcode-part-2-2
Just a small codesnippet to upload your .ipa
into TestFlight:
#!/bin/sh
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
# testflight stuff
API_TOKEN=<YOUR API TOKEN>
TEAM_TOKEN=<YOUR TEAM TOKEN>
Add this to the end of the existing script:
#
# Send to TestFlight
#
/usr/bin/curl "http://testflightapp.com/api/builds.json" \
-F file=@"${IPA_DIR}/${PROJECT}.ipa" \
-F dsym=@"${IPA_DIR}/${PROJECT}.dSYM.zip" \
-F api_token="${API_TOKEN}" \
-F team_token="${TEAM_TOKEN}" \
-F notes="Build ${BUILD_NUMBER} uploaded automatically from Xcode. Tested by Chuck Norris" \
-F notify=True \
-F distribution_lists='all'
echo "Successfully sent to TestFlight"