language: objective-c
before_install:
  - brew update
  - sudo easy_install cpp-coveralls
script: "xcodebuild test -workspace SPDY.xcodeproj/project.xcworkspace/ -scheme SPDYUnitTests -sdk iphonesimulator"
after_success: 
  - cp -r ${HOME}/Library/Developer/Xcode/DerivedData/SPDY-*/Build/Intermediates/SPDY.build/Coverage-iphonesimulator/SPDYUnitTests.build/Objects-normal/*/ gcov
  - coveralls -i SPDY
  - rm -r gcov

language: objective-c
before_install:
  - brew update
  - sudo easy_install cpp-coveralls
script: "xcodebuild test -workspace SPDY.xcodeproj/project.xcworkspace/ -scheme SPDYUnitTests -sdk iphonesimulator"
after_success: 
  - cp -r ${HOME}/Library/Developer/Xcode/DerivedData/SPDY-*/Build/Intermediates/SPDY.build/Coverage-iphonesimulator/SPDYUnitTests.build/Objects-normal/*/ gcov
  - rm -f gcov/*Test.*
  - rm -f gcov/*Mock*
  - rm -f gcov/SPDYSenTestLog.*
  - coveralls
  - rm -rf gcov

Remove unit tests from code coverage.
Remove unit tests from code coverage.

Something changed in the past few weeks and coveralls.io now reports
unit tests in the coverage numbers. It didn't use to do that, and I
don't know whether cpp-coveralls or coveralls.io or something else
changed.

Since coveralls is driven by the .gcda and .gcno files, its parameters
for excluding files & directories don't work in our hacky environment.
So we'll just hide test files by deleting the copy.
