From ecb9694aa08dc9a721b002601822cb591955f55f Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Wed, 16 Sep 2026 07:13:10 +0200 Subject: [PATCH] Cleanup from unused scripts --- script/cibuild | 77 ------------------------------------------ script/clean_externals | 22 ------------ 2 files changed, 99 deletions(-) delete mode 100755 script/cibuild delete mode 100755 script/clean_externals diff --git a/script/cibuild b/script/cibuild deleted file mode 100755 index cc58cb660..000000000 --- a/script/cibuild +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -ex -# -# script/cibuild -# ObjectiveGit -# -# Executes the build and runs tests for Mac and iOS. Designed to be invoked by -# Travis as a matrix build so that the two platform builds can run in parallel. -# -# Dependent tools & scripts: -# - script/bootstrap -# - script/update_libssl_ios -# - [xcodebuild](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html) -# - xcpretty (gem) -# - xcpretty-travis-formatter (gem) -# -# Environment Variables: -# - SCHEME: specifies which Xcode scheme to build. Set to one of the following: -# - ObjectiveGit Mac -# - ObjectiveGit iOS -# - TRAVIS: indicates when the build is being run by travis, used to invoke -# the xcpretty-travis-formatter gem for output. - -if [ -z "$SCHEME" ]; then - echo "The SCHEME environment variable is empty. Please set this to one of:" - echo "- ObjectiveGit Mac" - echo "- ObjectiveGit iOS" - exit 1 -fi - - -## -## Configuration Variables -## - -set -o pipefail -SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) -XCWORKSPACE="ObjectiveGitFramework.xcworkspace" -XCODE_OPTIONS=$(RUN_CLANG_STATIC_ANALYZER=NO ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO) - -if [ -n "$TRAVIS" ]; then - # Use a special formatter when running on TravisCI - XCPRETTY_FORMAT_OPTIONS="-f `xcpretty-travis-formatter`" -else - XCPRETTY_FORMAT_OPTIONS="--color" -fi - -## -## Build Process -## - -echo "*** Bootstrapping..." -"$SCRIPT_DIR/bootstrap" - -if [ "$SCHEME" == "ObjectiveGit Mac" ]; then - echo "*** Building and testing $SCHEME..." - echo - - xcodebuild -workspace "$XCWORKSPACE" \ - -scheme "$SCHEME" \ - ${XCODE_OPTIONS[*]} \ - build test \ - 2>&1 | xcpretty $XCPRETTY_FORMAT_OPTIONS -elif [ "$SCHEME" == "ObjectiveGit iOS" ]; then - echo "*** Prebuilding OpenSSL" - "$SCRIPT_DIR/update_libssl_ios" - - echo "*** Building and testing $SCHEME..." - echo - - xcodebuild -workspace "$XCWORKSPACE" \ - -scheme "$SCHEME" \ - -destination "platform=iOS Simulator,name=iPhone 5" \ - -sdk iphonesimulator \ - ${XCODE_OPTIONS[*]} \ - build test \ - 2>&1 | xcpretty $XCPRETTY_FORMAT_OPTIONS -fi diff --git a/script/clean_externals b/script/clean_externals deleted file mode 100755 index a25b6c530..000000000 --- a/script/clean_externals +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -ex - -# -# clean_externals -# ObjectiveGit -# -# Removes the outputs from the various static library targets. -# Necessary when switching platforms/architectures as Xcode does not clean -# these for you. -# - -# A list of external static libraries included in the SwiftGit2 framework -libraries=( - External/libgit2.a - External/libgit2-ios/libgit2-ios.a - External/libssh2-ios/lib/libssh2-ios.a - External/ios-openssl/lib/libssl.a - External/ios-openssl/lib/libcrypto.a - External/ios-openssl/include -) - -rm -vrf "${libraries[@]}"