konstantinbueschel
6/23/2015 - 4:45 PM

Travis CI example for Appcelerator Titanium app

Travis CI example for Appcelerator Titanium app

Continuous Integration Appcelerator Titanium application

Updated version of Automated acceptance testing with Travis from Tidev.io working with Appcelerator SDK 4.0.0.GA

Setps

  1. Get gulpfile.js file and .gulp folder from this TheSmiths/ts.boilerplate
  2. Create .travis.yml like attached
  3. Publish your code on Github public or private
  4. Register free account on Travis CI, then link it with your Github
  5. Finally import your project and check log with first code push
language: objective-c

notifications:
    email:
        - hazem.khaled@gmail.com
env:
    matrix:
        - PLATFORM="ios"
        - PLATFORM="android" ANDROID_VERSION="19"

before_install:
    - export ANDROID_HOME=$PWD/android-sdk-macosx
    - export ANDROID_SDK=$ANDROID_HOME
    - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools

install:
    - npm install -g appcelerator titanium alloy tishadow gulp
    - npm install gulp underscore moment gulp-util xml2js cloudinary
    - appc ti sdk install latest --no-progress-bars

    - gulp 'install:android_sdk'

before_script:
    - gulp 'start:emulator'
    - gulp 'config:tiapp' --test

script:
    - gulp 'test:calabash'
    - gulp 'test:jasmine'