diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..231ef3d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +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 + - bundle exec pod install +script: + - set -o pipefail + - xcodebuild -version + - xcodebuild -showsdks + +# 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 + 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