From c51c58ea02d6015fd1eaa02b0ddb9afeffefa6cf Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Thu, 4 Oct 2018 12:07:13 -0500 Subject: [PATCH 1/8] Added travis.yml --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9836194 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: swift +osx_image: xcode9.4.1 +install: + - bundle install --without=documentation + - bundle exec pod repo update + - bundle exec pod install +script: + - set -o pipefail + - xcodebuild -version + - xcodebuild -showsdks From b79d9bbbccc6bba5184ad094cd5f573d32403483 Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Thu, 4 Oct 2018 12:14:41 -0500 Subject: [PATCH 2/8] Updated travis.yml to xcode10 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9836194..bf4ead8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: swift -osx_image: xcode9.4.1 +osx_image: xcode10 install: - bundle install --without=documentation - bundle exec pod repo update From 3108e66d5705b78fe580dba0f746a6736dc262ca Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Thu, 4 Oct 2018 12:25:22 -0500 Subject: [PATCH 3/8] Updates to travis.yml --- .travis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.travis.yml b/.travis.yml index bf4ead8..f2c1738 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,14 @@ language: swift osx_image: xcode10 +env: + global: + - LC_CTYPE=en_US.UTF-8 + - LANG=en_US.UTF-8 + - WORKSPACE=SOExplorer.xcworkspace + - SCHEME="SOExplorer" + - IOS_SDK=iphonesimulator12.0 + matrix: + - DESTINATION="OS=12.0,name=iPhone X" SCHEME="$SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" install: - bundle install --without=documentation - bundle exec pod repo update @@ -8,3 +17,14 @@ script: - set -o pipefail - xcodebuild -version - xcodebuild -showsdks + +# Build Framework in Debug and Run Tests if specified +- if [ $RUN_TESTS == "YES" ]; then + xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test | xcpretty -c; + else + xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug build | xcpretty -c; + fi + +after_success: +- bundle binstub slather +- bin/slather coverage --binary-basename SOExplorer From cde801c7127ed97ea20f6d2d4e02de30469dea78 Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Thu, 4 Oct 2018 12:39:31 -0500 Subject: [PATCH 4/8] yml formatting fix --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f2c1738..e5faf46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,11 +19,11 @@ script: - xcodebuild -showsdks # Build Framework in Debug and Run Tests if specified -- if [ $RUN_TESTS == "YES" ]; then - xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test | xcpretty -c; - else - xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug build | xcpretty -c; - fi + - if [ $RUN_TESTS == "YES" ]; then + xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test | xcpretty -c; + else + xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug build | xcpretty -c; + fi after_success: - bundle binstub slather From e27a99ad803a6bd538912353233a710d09a6e8eb Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Fri, 5 Oct 2018 09:06:49 -0500 Subject: [PATCH 5/8] Jenkins test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e5faf46..275535a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ script: - xcodebuild -version - xcodebuild -showsdks -# Build Framework in Debug and Run Tests if specified +# Build Framework in Debug and Run Tests if specified - test - if [ $RUN_TESTS == "YES" ]; then xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test | xcpretty -c; else From e3c222b1735e7a29f502f52a7950d70e1324d0a6 Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Fri, 5 Oct 2018 10:02:47 -0500 Subject: [PATCH 6/8] testing --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 275535a..82a3f21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ script: - xcodebuild -version - xcodebuild -showsdks -# Build Framework in Debug and Run Tests if specified - test +# Build Framework in Debug and Run Tests if specified - testing - if [ $RUN_TESTS == "YES" ]; then xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test | xcpretty -c; else From 72d1748bf48a98565b3fcdcf320f96c7daf88eca Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Fri, 5 Oct 2018 10:06:56 -0500 Subject: [PATCH 7/8] testing2 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 82a3f21..1025cc0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ script: - xcodebuild -version - xcodebuild -showsdks -# Build Framework in Debug and Run Tests if specified - testing +# Build Framework in Debug and Run Tests if specified - testing2 - if [ $RUN_TESTS == "YES" ]; then xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test | xcpretty -c; else From 6edb3d16aa0bd581de2a891a5e55b77022a741b5 Mon Sep 17 00:00:00 2001 From: Skye McCaskey Date: Fri, 5 Oct 2018 16:46:02 -0500 Subject: [PATCH 8/8] test 3 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1025cc0..231ef3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ script: - xcodebuild -version - xcodebuild -showsdks -# Build Framework in Debug and Run Tests if specified - testing2 +# Build Framework in Debug and Run Tests if specified - testing3 - if [ $RUN_TESTS == "YES" ]; then xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test | xcpretty -c; else