Skip to content

Instantly share code, notes, and snippets.

@HazemKhaled
Last active May 4, 2017 17:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save HazemKhaled/0f7f3c1d7ebba4b3bbeb to your computer and use it in GitHub Desktop.
Save HazemKhaled/0f7f3c1d7ebba4b3bbeb to your computer and use it in GitHub Desktop.
Travis CI example for Appcelerator Titanium app
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'

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
@mtorrisi
Copy link

Hi,

I'm trying to build my app using your .travis.yml, but a I get the following error during the - gulp 'install:android_sdk' step

$ gulp 'install:android_sdk'
module.js:340
    throw err;
    ^
Error: Cannot find module 'gulp-additional-utils'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/travis/build/csgf/earthserver-sg-mobile/gulpfile.js:11:47)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
The command "gulp 'install:android_sdk'" failed and exited with 8 during .
Your build has been stopped.

Here the link to the build history.

Could you help me?
Thanks in advance.

Mario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment