Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Travis iOS

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Travis iOS

Avatar for Oursky Limited

Oursky Limited

June 30, 2014
Tweet

More Decks by Oursky Limited

Other Decks in Programming

Transcript

  1. The idea • Atomic commits • Automated, test, build and

    delivery • One version, aka. no branching
  2. Actual steps • Write Test • Write Code • Push

    - Github • Automated Test - Travis-CI • Automated distribution - TestFlight
  3. Test in general • Input <—> Output Checking • Function

    <—> State Checking • Actions <—> Behaviour Checking
  4. Test in Xcode • XCTest automatically include since Xcode5 •

    Press ⌘+U • xcodebuild • xctool - facebook xcodebuild with pretty print
  5. 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"
  6. 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