Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0 #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

32 changes: 18 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
#xcode specific
# OS X
.DS_Store

# Xcode
build/
*.pbxuser
*.mode2v3
!default.pbxuser
*.mode1v3
*.perspective
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
*~.nib
#ignore private workspace stuff added by Xcode4
!default.perspectivev3
xcuserdata
project.xcworkspace

## generic files to ignore
*~
*.lock
*.DS_Store
*.swp
*.out
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

.bundle/
# Bundler
.bundle
vendor/
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
language: objective-c
cache:
directories:
- vendor/bundle
install:
- sudo easy_install cpp-coveralls
- bundle install --path=vendor/bundle --binstubs=vendor/bin
- (cd Lib && bundle install --path=vendor/bundle --binstubs=vendor/bin)
script:
- bundle exec rake ios:build osx:build ios:test osx:test
- (cd Lib && bundle exec rake test:ios test:osx)
after_success:
- ./iOS/Script/coveralls.sh
- ./Lib/Script/coveralls.sh
branches:
only:
- master
env:
global:
- LANG=en_US.UTF-8
Expand Down
File renamed without changes.
14 changes: 14 additions & 0 deletions Lib/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
GEM
remote: https://rubygems.org/
specs:
rake (10.4.2)
xcjobs (0.0.4)
xcpretty (0.1.7)

PLATFORMS
ruby

DEPENDENCIES
rake
xcjobs
xcpretty
45 changes: 28 additions & 17 deletions Rakefile → Lib/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,56 @@ def destinations
]
end

XCJobs::Build.new('ios:build') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'iOS'
XCJobs::Build.new('build:simulator') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'UICKeyChainStore-iOS'
t.sdk = 'iphonesimulator'
t.configuration = 'Release'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
t.add_build_setting('CODE_SIGN_IDENTITY', '')
t.add_build_setting('CODE_SIGNING_REQUIRED', 'NO')
end

XCJobs::Build.new('osx:build') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'Mac'
XCJobs::Build.new('build:device') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'UICKeyChainStore-iOS'
t.sdk = 'iphoneos'
t.configuration = 'Release'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
t.add_build_setting('CODE_SIGN_IDENTITY', '')
t.add_build_setting('CODE_SIGNING_REQUIRED', 'NO')
end

XCJobs::Build.new('build:osx') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'UICKeyChainStore-Mac'
t.configuration = 'Release'
t.sdk = 'macosx'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
t.add_build_setting('CODE_SIGN_IDENTITY', '')
t.add_build_setting('CODE_SIGNING_REQUIRED', 'NO')
end

XCJobs::Test.new('ios:test') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'iOS'
XCJobs::Test.new('test:ios') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'libUICKeyChainStore-iOS'
t.configuration = 'Release'
t.build_dir = 'build'
destinations.each do |destination|
t.add_destination(destination)
end
t.build_dir = 'build'
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('osx:test') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'Mac'
t.configuration = 'Release'
XCJobs::Test.new('test:osx') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'libUICKeyChainStore-Mac'
t.sdk = 'macosx'
t.configuration = 'Release'
t.build_dir = 'build'
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ for file in *.gcda; do
gcov "\${file}"
done

coveralls --root "${SRCROOT}/../" -e "iOS" --no-gcov
coveralls --root "${SRCROOT}/../" --extension ".m" --no-gcov
EOF

chmod +x "${COVERALLS_SCRIPT_PATH}"