Skip to content

Commit

Permalink
massage test-carthage script for travis-ci
Browse files Browse the repository at this point in the history
* add acknowledgement where this comes from
* try to make it travis compatible
  • Loading branch information
diederich committed Jun 27, 2019
1 parent 038f8ec commit a8cc91d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/test-carthage.sh
@@ -1,7 +1,15 @@
#!/bin/bash

IASKSETTINGSKIT_DIR=`pwd`
IASKSETTINGSKIT_BRANCH="master"
# copied & adjusted from https://github.com/abbeycode/UnzipKit/blob/master/Scripts/carthage-validate.sh

if [ -z ${TRAVIS+x} ]; then
IASKSETTINGSKIT_DIR=`pwd`
IASKSETTINGSKIT_BRANCH=`git rev-parse --abbrev-ref HEAD` #Current Git branch
else
IASKSETTINGSKIT_DIR="$TRAVIS_BUILD_DIR"
IASKSETTINGSKIT_BRANCH="$TRAVIS_BRANCH"
fi


if [ ! -d "$IASKSETTINGSKIT_DIR/InAppSettingsKit.xcodeproj" ]; then
echo "Make sure to run this from the repo root"
Expand Down

0 comments on commit a8cc91d

Please sign in to comment.