Skip to content

Commit bacc139

Browse files
ooolakellyroach-optimizely
authored andcommitted
Added SourceClear to run in one build per commit (#258)
* added sourceclear to only run in one build per commit * moved sourceclear.sh into Scripts folder * fix typo * it -> is, 'skipping sourceclear'
1 parent f60d8eb commit bacc139

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ branches:
55
- master
66
env:
77
matrix:
8-
- SCHEME=OptimizelySDKiOS TEST_SDK=iphonesimulator PLATFORM='iOS Simulator' OS=9.1 NAME='iPad Air'
8+
- SCHEME=OptimizelySDKiOS TEST_SDK=iphonesimulator PLATFORM='iOS Simulator' OS=9.1 NAME='iPad Air' RUN_SOURCECLEAR=true
99
- SCHEME=OptimizelySDKiOS TEST_SDK=iphonesimulator PLATFORM='iOS Simulator' OS=10.1 NAME='iPhone 7 Plus'
1010
- SCHEME=OptimizelySDKiOS TEST_SDK=iphonesimulator PLATFORM='iOS Simulator' OS=10.3.1 NAME='iPhone 7'
1111
- SCHEME=OptimizelySDKiOS-Universal TEST_SDK=iphonesimulator PLATFORM='iOS Simulator' OS=9.3 NAME='iPhone 6s'
@@ -19,6 +19,7 @@ script:
1919
- pod spec lint --quick
2020
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then xcodebuild test -quiet -workspace OptimizelySDK.xcworkspace -scheme $SCHEME -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -sdk $TEST_SDK -destination "platform=$PLATFORM,OS=$OS,name=$NAME" ONLY_ACTIVE_ARCH=YES | egrep -B 10 -A 10 "(error|warning|failed|crash|exit|FAILED|Failing|failures)"; fi
2121
after_success:
22+
- ./Scripts/sourceclear.sh
2223
- slather
2324
- sleep 5 # https://github.com/travis-ci/travis-ci/issues/4725
2425

Scripts/sourceclear.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
if [ "$RUN_SOURCECLEAR" = "true" ]; then
4+
echo "RUN_SOURCECLEAR is set, running sourceclear"
5+
curl -sSL https://download.sourceclear.com/ci.sh | bash
6+
else
7+
echo "RUN_SOURCECLEAR is not set, skipping sourceclear"
8+
fi

0 commit comments

Comments
 (0)