Permalink
Browse files

- Only print out unit test section.

  • Loading branch information...
lxcid committed Apr 9, 2013
1 parent 6581f0b commit 0ef3f16d405cab52d73a5d0db43b371e6be36ea5
Showing with 14 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +13 −1 Rakefile
View
@@ -1,3 +1,3 @@
language: objective-c
before_install: "sudo gem update --system && sudo gem install bundler && bundle install"
-script: "VERBOSE=TRUE bundle exec rake test --trace"
+script: "bundle exec rake test --trace"
View
@@ -15,8 +15,20 @@ end
def test_scheme(scheme, verbose = false)
command = "xcodebuild -project src/LXSupport/LXSupport.xcodeproj -target LXSupportTests -sdk iphonesimulator -configuration Debug TEST_AFTER_BUILD=YES 2>&1"
IO.popen(command) do |io|
+ out = 0
while line = io.gets do
- puts line if verbose
+ if verbose
+ puts line
+ else
+ if line =~ /Started tests for architectures/
+ out = out + 1
+ elsif line =~ /Completed tests for architectures/
+ out = out - 1
+ end
+
+ puts line if out > 0
+ end
+
if line == "** BUILD SUCCEEDED **\n"
return 0
elsif line == "** BUILD FAILED **\n"

0 comments on commit 0ef3f16

Please sign in to comment.