Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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