Hudson / Jenkins for iOSor having Chuck Norris watch over your codeNSConference 2011 - Mar 2011                           ...
Background Eric Bariaux   ebariaux@appsdojo.com      @ebariaux   NeXTSTEP & OpenStep                  Java
Agenda• Show how straightforward and easy it is to put a project  under CI• Explore what’s possible beyond running unit te...
Continuous Integration• Automate build and tests and ...• Use SCM, commit often• Every commit to main branch triggers a bu...
Example• CI for iOS using Jenkins
Jenkins cheat sheet• http://tomcat.apache.org• http://jenkins-ci.org   • http://wiki.jenkins-ci.org/display/JENKINS/Plugin...
Going further• More QA : CLANG  • http://clang-analyzer.llvm.org/
clang.sh rm -rf build mkdir build ./checker-255/scan-build --status-bugs -o build/scan-build /Developer/usr/bin/xcodebuild...
clang.sh if [ "$?" -ne "0" ]; then      mv build/scan-build/* build/scan-build-result      exit -1 else      mkdir build/s...
Going further• Documentation  • http://www.gentlebytes.com/home/appledocapp
Going further• Dependency management
Thank you   iOS Mentoring - Training - Application development  ebariaux@appsdojo.com      http://www.appsdojo.com
Using Jenkins with iOS projects
Upcoming SlideShare
Loading in …5
×

Using Jenkins with iOS projects

5,214 views

Published on

Published in: Technology
1 Comment
1 Like
Statistics
Notes
  • 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
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
5,214
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
53
Comments
1
Likes
1
Embeds 0
No embeds

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
  • Using Jenkins with iOS projects

    1. 1. Hudson / Jenkins for iOSor having Chuck Norris watch over your codeNSConference 2011 - Mar 2011 Eric Bariaux - AppsDojo
    2. 2. Background Eric Bariaux ebariaux@appsdojo.com @ebariaux NeXTSTEP & OpenStep Java
    3. 3. Agenda• Show how straightforward and easy it is to put a project under CI• Explore what’s possible beyond running unit tests
    4. 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. 5. Example• CI for iOS using Jenkins
    6. 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. 7. Going further• More QA : CLANG • http://clang-analyzer.llvm.org/
    8. 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. 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. 10. Going further• Documentation • http://www.gentlebytes.com/home/appledocapp
    11. 11. Going further• Dependency management
    12. 12. Thank you iOS Mentoring - Training - Application development ebariaux@appsdojo.com http://www.appsdojo.com

    ×