Skip to content

Commit

Permalink
[Travis] Specify env NSUnbufferedIO=YES
Browse files Browse the repository at this point in the history
Also defines the build task in Rakefile.
  • Loading branch information
ikesyo committed Jul 13, 2016
1 parent e6f67f2 commit 4aa8a46
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Expand Up @@ -35,10 +35,9 @@ before_install:
- git submodule update --init --recursive
script:
- pod lib lint --allow-warnings --quick
- set -o pipefail
- xcodebuild test -scheme Himotoki-Mac -configuration Release ENABLE_TESTABILITY=YES GCC_GENERATE_DEBUGGING_SYMBOLS=NO | xcpretty -c
- xcodebuild test -scheme Himotoki-iOS -configuration Release ENABLE_TESTABILITY=YES GCC_GENERATE_DEBUGGING_SYMBOLS=NO -sdk iphonesimulator -destination "name=iPhone 6s" | xcpretty -c
- xcodebuild test -scheme Himotoki-tvOS -configuration Release ENABLE_TESTABILITY=YES GCC_GENERATE_DEBUGGING_SYMBOLS=NO -sdk appletvsimulator -destination "name=Apple TV 1080p" | xcpretty -c
- xcodebuild build -scheme Himotoki-watchOS -configuration Release GCC_GENERATE_DEBUGGING_SYMBOLS=NO -sdk watchsimulator -destination "name=Apple Watch - 38mm" | xcpretty -c
- rake "build[test, Himotoki-Mac, macosx, arch=x86_64]"
- rake "build[test, Himotoki-iOS, iphonesimulator, name=iPhone 6s]"
- rake "build[test, Himotoki-tvOS, appletvsimulator, name=Apple TV 1080p]"
- rake "build[build, Himotoki-watchOS, watchsimulator, name=Apple Watch - 38mm]"
notifications:
email: false
14 changes: 14 additions & 0 deletions Rakefile
@@ -0,0 +1,14 @@
desc 'Run xcodebuild'
task :build, [:action, :scheme, :sdk, :destination] do |_, args|
cmd = %W(
xcodebuild #{args.action}
-scheme "#{args.scheme}"
-sdk #{args.sdk}
-destination "#{args.destination}"
-configuration Release
ENABLE_TESTABILITY=YES
GCC_GENERATE_DEBUGGING_SYMBOLS=NO
)

sh "set -eu -o pipefail && env NSUnbufferedIO=YES #{cmd.join(' ')} | xcpretty"
end

0 comments on commit 4aa8a46

Please sign in to comment.