This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xcodebuild -exportArchive -archivePath /Users/Shared/Jenkins/Documents/build/your_project.xcarchive/ -exportPath ~/Desktop/ -exportOptionsPlist ExportOptions.plist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| security unlock-keychain -p "your_system_password" ~/Library/Keychains/login.keychain-db && xcodebuild -workspace your_project.xcworkspace/ -scheme your_project_schema -sdk iphoneos -configuration "${CONFIGURATION}" archive -archivePath /Users/Shared/Jenkins/Documents/build/your_project.xcarchive PROVISIONING_PROFILE="${PROVISION_PROFILE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sh /Users/Shared/Jenkins/Documents/test.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chmod 744 ~/Documents/test.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file=/Users/Shared/Jenkins/Home/workspace/YourProject/test-reports/reports.xml | |
| if | |
| grep -q "failure message=" $file | |
| then | |
| exit 1 | |
| else | |
| echo "fine" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vi ~/Documents/test.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xcodebuild test -workspace your_project.xcworkspace/ -scheme your_project_schema -destination 'id=B68B1BC5-77C7-48F9-A4C7-513A9660D1CF' | /usr/local/bin/xcpretty -r junit -o test-reports/reports.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo gem install xcpretty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xcodebuild test -workspace your_project.xcworkspace/ -scheme your_project_schema -destination 'platform=iOS Simulator,name=iPhone X,OS=11.1' | /usr/local/bin/xcpretty -r junit -o test-reports/reports.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xcodebuild test -workspace your_project.xcworkspace/ -scheme Your_project_schema -destination 'platform=iOS Simulator,name=iPhone X,OS=11.1' |