Skip to content

Commit

Permalink
Fix fullbuild.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dvernon-splunk committed Jul 31, 2023
1 parent 3022014 commit 458eb69
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions fullbuild.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 458eb69

Please sign in to comment.