Using Jenkins with iOS projects

  • 4,658 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • BTW, if anyone doesn't want to go through all the setup hassle, I'm building based iOS/Mac CI solution based on Jenkins – http://hosted-ci.com
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
4,658
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
50
Comments
1
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • Started with NeXTSTEP and OpenStep, foundation, EOF, ... Tools were not there yet, barely version control, no automated testing\nJava world, software methodologies matured, strong focus on unit testing, continuous integration, ...\n
  • \n
  • build, test and more: can integrate a ton of other aspects of control into the automation, doc generation, publishing, ...\n\nversion control, commit as soon as the build should not break\n\neveryone sees results -> if team, also useful for indie\n
  • Let’s set-up continuous integration for our project, using Hudson\nUsed in the java world, runs in any servlet container, let’s use tomcat\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. Hudson / Jenkins for iOSor having Chuck Norris watch over your codeNSConference 2011 - Mar 2011 Eric Bariaux - AppsDojo
  • 2. Background Eric Bariaux ebariaux@appsdojo.com @ebariaux NeXTSTEP & OpenStep Java
  • 3. Agenda• Show how straightforward and easy it is to put a project under CI• Explore what’s possible beyond running unit tests
  • 4. Continuous Integration• Automate build and tests and ...• Use SCM, commit often• Every commit to main branch triggers a build• Everyone sees the results
  • 5. Example• CI for iOS using Jenkins
  • 6. Jenkins cheat sheet• http://tomcat.apache.org• http://jenkins-ci.org • http://wiki.jenkins-ci.org/display/JENKINS/Plugins • git, HTML Publisher, Chuck Norris • SICCI for Xcode• http://github.com/ciryon/OCUnit2JUnit.git
  • 7. Going further• More QA : CLANG • http://clang-analyzer.llvm.org/
  • 8. clang.sh rm -rf build mkdir build ./checker-255/scan-build --status-bugs -o build/scan-build /Developer/usr/bin/xcodebuild -target AwesomeAlgorithm -configuration "Debug" -sdk iphonesimulator4.3
  • 9. clang.sh if [ "$?" -ne "0" ]; then mv build/scan-build/* build/scan-build-result exit -1 else mkdir build/scan-build-result echo <html><body>No CLANG issues detected</body></html> > build/scan-build-result/index.html fi
  • 10. Going further• Documentation • http://www.gentlebytes.com/home/appledocapp
  • 11. Going further• Dependency management
  • 12. Thank you iOS Mentoring - Training - Application development ebariaux@appsdojo.com http://www.appsdojo.com