#!/bin/sh
if [ "$LANE" = "test" ];
then
    xcodebuild -project Sentry.xcodeproj -scheme SentryTests build test -sdk iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
    bash <(curl -s https://codecov.io/bash) -J '^Swift$'
elif [ "$LANE" = "do_cocoapods" ];
then
    xcodebuild -project Sentry.xcodeproj -scheme SentrySwiftTests build test -sdk iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
    bash <(curl -s https://codecov.io/bash) -J '^SentrySwift$'
fi

#!/bin/sh
if [ "$LANE" = "test" ];
then
    bash <(curl -s https://codecov.io/bash) -J '^Swift$'
elif [ "$LANE" = "test_swift" ];
then
    bash <(curl -s https://codecov.io/bash) -J '^SentrySwift$'
fi

Remove xcode build because fastline does it already
Remove xcode build because fastline does it already
