Skip to content

Commit

Permalink
Add test with SwiftPM to .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akkyie committed Sep 30, 2019
1 parent 3ffe279 commit ebcaad1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
language: objective-c
os: osx
osx_image: xcode11
env:
- CI_USE_SWIFTPM=true
- CI_USE_SWIFTPM=false
before_install:
- gem install xcpretty
- carthage update --no-use-binaries --platform ios
- |
if ! $CI_USE_SWIFTPM ; then
carthage update --no-use-binaries --platform ios
fi
before_script:
- set -o pipefail
script:
- xcodebuild test -project ./Unio.xcodeproj -scheme Unio -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.2,name=iPhone 8' | xcpretty -c
script: |
PROJECT_ARG=
if $CI_USE_SWIFTPM ; then
rm -rf *.xcodeproj
else
PROJECT_ARG="-project ./Unio.xcodeproj"
fi
xcodebuild test $PROJECT_ARG -scheme Unio -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.2,name=iPhone 8' | xcpretty -c
notifications:
email: false

0 comments on commit ebcaad1

Please sign in to comment.