Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Travis iOS
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Oursky Limited
June 30, 2014
Programming
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Travis iOS
Oursky Limited
June 30, 2014
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
540
SSH Can
oursky
1
340
HTTP/2
oursky
0
380
watchOS2
oursky
0
370
Common QA issues
oursky
0
230
Complex is better than complicated
oursky
0
310
Clean code again
oursky
3
410
KiriKiri x O2 x NVLMarker
oursky
0
270
Flux + React
oursky
1
420
Other Decks in Programming
See All in Programming
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
7.8k
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
170
Lessons from Spec-Driven Development
simas
PRO
0
220
Snowflake Summitでの新機能 CoCo / CoWork / snowflake-summit-2026-overall-what-new-coco
tatsuhiro
1
180
AI 輔助遺留系統現代化的經驗分享
jame2408
1
970
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
800
Claspは野良GASの夢をみるか
takter00
0
210
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
260
OSもどきOS
arkw
0
590
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
300
Performance Engineering for Everyone
elenatanasoiu
0
210
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
Exploring anti-patterns in Rails
aemeredith
3
420
Discover your Explorer Soul
emna__ayadi
2
1.1k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Building AI with AI
inesmontani
PRO
1
1.1k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
340
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
190
Measuring & Analyzing Core Web Vitals
bluesmoon
9
870
Transcript
Continuous Integration iOS on Travis
The idea • Atomic commits • Automated, test, build and
delivery • One version, aka. no branching
Actual steps • Write Test • Write Code • Push
- Github • Automated Test - Travis-CI • Automated distribution - TestFlight
Test in general • Input <—> Output Checking • Function
<—> State Checking • Actions <—> Behaviour Checking
Test in Xcode • XCTest automatically include since Xcode5 •
Press ⌘+U • xcodebuild • xctool - facebook xcodebuild with pretty print
Travis.yml language: objective-c script: - xctool test -workspace asosnewin.xcworkspace -scheme
asosnewin -sdk iphonesimulator7.0 ONLY_ACTIVE_ARCH=NO
Build,Sign and distribute • xctool -workspace asosnewin.xcworkspace -scheme asosnewin -sdk
iphoneos7.1 -configuration Release OBJROOT=$PWD/build SYMROOT=$PWD/build ONLY_ACTIVE_ARCH=NO • xcrun -log -sdk iphoneos PackageApplication "$APP_NAME.app" -o "$APP_NAME.ipa" -sign "$DEVELOPER_NAME" -embed "$PROVISIONING_PROFILE" • curl http://testflightapp.com/api/builds.json -F file="@$APP_NAME.ipa"
Setup Env on Travis • travis encrypt "APP_NAME=GIFCAM" —add •
Keys • Encrypt with openssl aes-256-cbc and checkin into github • decrypt the key and do security import on travis
Reference • http://www.objc.io/issue-6/travis-ci.html • http://martinfowler.com/articles/ mocksArentStubs.html • https://developer.apple.com/library/ios/ documentation/ToolsLanguages/Conceptual/ Xcode_Overview/UnitTestYourApp/
UnitTestYourApp.html