Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait does this really exists the app? #1

Closed
yuchi opened this issue Mar 6, 2015 · 4 comments
Closed

Wait does this really exists the app? #1

yuchi opened this issue Mar 6, 2015 · 4 comments

Comments

@yuchi
Copy link

yuchi commented Mar 6, 2015

Really? It’s awesome! (not kidding)

Some questions:

  1. When you exit does the CLI stops too?
  2. Is it possible to add exit codes so we know if it was a success or a failure?
@yuchi
Copy link
Author

yuchi commented Mar 6, 2015

(BTW you should remove the default READMEs 😅 )

@sttts
Copy link
Owner

sttts commented Mar 6, 2015

Quick & dirty. As written in the description :-)

About you questions. In the middle implementing this I colleague came up with this, making ti-exit obsolete for the moment:

Ti.API.info('ti-mocha RC=' + err);

// use one of Ti's many bugs to quit the app ;-)
Ti.Media.createAudioRecorder().stop();

Then I have a shell script which filters out the return code:

#!/bin/bash

script /dev/stdout ti build -p ios | tee run.log
RC=$(egrep -o "ti-mocha RC=[0-9]*" run.log | head -1 | sed 's/ti-mocha RC=//')
test "$RC" == 0

I run this from a Jenkins CI job.

@sttts
Copy link
Owner

sttts commented Mar 6, 2015

Finished the module. Works fine now.

@sttts sttts closed this as completed Mar 6, 2015
@sttts
Copy link
Owner

sttts commented Mar 6, 2015

Exit code are passed to the libc exit function. But it seems the ti cli ignores them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants