diff --git a/fullbuild.sh b/fullbuild.sh index eae2eb9..47445b9 100755 --- a/fullbuild.sh +++ b/fullbuild.sh @@ -1,16 +1,19 @@ #!/bin/bash -set -e +set -ex swiftlint --strict # Make sure the version numbers on the podspec and CrashReporting.swift match echo "Checking that version numbers match" -rumVer="$(grep SplunkRumVersionString SplunkRumCrashReporting/SplunkRumCrashReporting/CrashReporting.swift | grep -o '[0-9]*\.[0-9]*\.[0-9]*')" -podVer="$(grep s.version SplunkOtel.podspec | grep -o '[0-9]*\.[0-9]*\.[0-9]*')" +rumVer="$(grep CrashReportingVersionString SplunkRumCrashReporting/SplunkRumCrashReporting/CrashReporting.swift | grep -o '[0-9]*\.[0-9]*\.[0-9]*')" +podVer="$(grep s.version SplunkOtelCrashReporting.podspec | grep -o '[0-9]*\.[0-9]*\.[0-9]*')" if [ $podVer != $rumVer ]; then - echo "Error: The version numbers in SplunkOtel.podspec and SplunkRum.swift do not match" + echo "Error: The version numbers in SplunkOtelCrashReporting.podspec and SplunkRum.swift do not match" exit 1 fi +# Check the podspec is valid +pod lib lint SplunkOtelCrashReporting.podspec + xcodebuild -project SplunkRumCrashReporting/SplunkRumCrashReporting.xcodeproj -scheme SplunkRumCrashReporting -configuration Debug build xcodebuild -project SplunkRumCrashReporting/SplunkRumCrashReporting.xcodeproj -scheme SplunkRumCrashReporting -configuration Debug test xcodebuild -project SplunkRumCrashReporting/SplunkRumCrashReporting.xcodeproj -scheme SplunkRumCrashReporting -configuration Release build