Use XCJobs instead cpp-coveralls

This commit is contained in:
kishikawa katsumi
2015-02-02 06:09:17 +09:00
parent ff719f53ab
commit a0a125feef
5 changed files with 9 additions and 45 deletions

View File

@@ -1,11 +1,8 @@
language: objective-c
install:
- sudo easy_install cpp-coveralls
- (cd Lib && bundle install --path=vendor/bundle --binstubs=vendor/bin)
script:
- (cd Lib && bundle exec rake test:ios test:osx)
after_success:
- ./Lib/Script/coveralls.sh
- (cd Lib && bundle exec rake test:ios test:osx coverage:coveralls)
branches:
only:
- master

View File

@@ -2,7 +2,7 @@ GEM
remote: https://rubygems.org/
specs:
rake (10.4.2)
xcjobs (0.0.5)
xcjobs (0.0.6)
xcpretty (0.1.7)
PLATFORMS

View File

@@ -10,7 +10,7 @@ def destinations
'name=iPhone 5s,OS=7.1',
'name=iPhone 5s,OS=8.1',
'name=iPhone 6,OS=8.1',
'name=iPhone 6 Plus,OS=8.1'
'name=iPhone 6 Plus,OS=8.1',
]
end
@@ -54,9 +54,8 @@ XCJobs::Test.new('test:ios') do |t|
destinations.each do |destination|
t.add_destination(destination)
end
t.coverage = true
t.formatter = 'xcpretty -c'
t.add_build_setting('GCC_INSTRUMENT_PROGRAM_FLOW_ARCS', 'YES')
t.add_build_setting('GCC_GENERATE_TEST_COVERAGE_FILES', 'YES')
end
XCJobs::Test.new('test:osx') do |t|
@@ -67,3 +66,8 @@ XCJobs::Test.new('test:osx') do |t|
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
end
XCJobs::Coverage::Coveralls.new() do |t|
t.add_extension('.m')
t.add_exclude('Lib/UICKeyChainStoreTests')
end

View File

@@ -1,19 +0,0 @@
#!/bin/bash -e
if [[ -z "${CI}" ]]; then
exit 0
fi
COVERALLS_SCRIPT_PATH="${SRCROOT}/Script/coveralls.sh"
cat > "${COVERALLS_SCRIPT_PATH}" <<EOF
#!/bin/bash -e
cd "${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}"
for file in *.gcda; do
gcov "\${file}"
done
coveralls --root "${SRCROOT}/../" --extension ".m" -e "Lib/UICKeyChainStoreTests/" -e "Examples/" -e "Lib/vendor/" --no-gcov
EOF
chmod +x "${COVERALLS_SCRIPT_PATH}"

View File

@@ -313,7 +313,6 @@
14A59CFA1A62F336006561CC /* Sources */,
14A59CFB1A62F336006561CC /* Frameworks */,
14A59CFC1A62F336006561CC /* CopyFiles */,
14A59D171A62F3C5006561CC /* Create Coveralls Script */,
);
buildRules = (
);
@@ -481,23 +480,6 @@
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
14A59D171A62F3C5006561CC /* Create Coveralls Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Create Coveralls Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "Script/create-coveralls-script.sh";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
14A59C981A62CF6E006561CC /* Sources */ = {
isa = PBXSourcesBuildPhase;