2
0

build.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. bold=$(tput bold)
  3. normal=$(tput sgr0)
  4. echo "${bold}/*****************************/"
  5. echo "/* Build: SwiftyStoreKit_iOS */"
  6. echo "/*****************************/${normal}"
  7. set -o pipefail && xcodebuild -project SwiftyStoreKit.xcodeproj -target SwiftyStoreKit_iOS | tee xcodebuild.log | xcpretty
  8. echo ""
  9. echo "${bold}/*******************************/"
  10. echo "/* Build: SwiftyStoreKit_macOS */"
  11. echo "/*******************************/${normal}"
  12. set -o pipefail && xcodebuild -project SwiftyStoreKit.xcodeproj -target SwiftyStoreKit_macOS | tee xcodebuild.log | xcpretty
  13. echo ""
  14. echo "${bold}/******************************/"
  15. echo "/* Build: SwiftyStoreKit_tvOS */"
  16. echo "/******************************/${normal}"
  17. set -o pipefail && xcodebuild -project SwiftyStoreKit.xcodeproj -target SwiftyStoreKit_tvOS | tee xcodebuild.log | xcpretty
  18. echo ""
  19. echo "${bold}/******************************/"
  20. echo "/* Build: SwiftyStoreKit_watchOS */"
  21. echo "/******************************/${normal}"
  22. set -o pipefail && xcodebuild -project SwiftyStoreKit.xcodeproj -target SwiftyStoreKit_watchOS | tee xcodebuild.log | xcpretty
  23. echo ""
  24. echo "${bold}/****************************/"
  25. echo "/* Run: SwiftyStoreKitTests */"
  26. echo "/****************************/${normal}"
  27. set -o pipefail && xcodebuild test -project SwiftyStoreKit.xcodeproj -scheme SwiftyStoreKitTests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=12.0' | tee xcodebuild.log | xcpretty