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

Travis build is failing #57

Closed
tjvantoll opened this issue Feb 27, 2016 · 11 comments
Closed

Travis build is failing #57

tjvantoll opened this issue Feb 27, 2016 · 11 comments

Comments

@tjvantoll
Copy link
Contributor

See https://travis-ci.org/NativeScript/sample-Groceries/builds/112147263

@ligaz: Any idea what’s going on here? Looks like the Android build worked, but that something timed out before the emulator started up. I’ll try a few more commits to see if this is just a fluke.

@ligaz
Copy link
Contributor

ligaz commented Mar 1, 2016

There is an issue in the CLI that we do not start the application when it is not previously installed on the device. The issue is already fixed (NativeScript/nativescript-cli#1545) in 1.6.2 that will be available in the coming days.

Alternatively you can temporary fix this the same way we do it here: https://github.com/NativeScript/nativescript-angular/blob/master/.travis.yml#L35

@tjvantoll
Copy link
Contributor Author

I’ll just hold off until 1.6.2 is out and make sure it fixes the problem here. Thanks @ligaz.

@ligaz
Copy link
Contributor

ligaz commented Mar 2, 2016

The 1.6.2 version is out. You should update the .travis.yml with the following:

tns test android --emulator --justlaunch

We are considering enabling --justlaunch as a default option so that you do not have to specify it but this probably will be available in the next release.

@tjvantoll tjvantoll reopened this Mar 2, 2016
@tjvantoll
Copy link
Contributor Author

@ligaz Hmmm... just tried again after adding --justlaunch and I’m still getting the same error: https://travis-ci.org/NativeScript/sample-Groceries/builds/113206863

@ligaz
Copy link
Contributor

ligaz commented Mar 10, 2016

We have a new version of the nativescript-unit-test-runner package that should address this issue. Can you please upgrade it and give it another try?

@tjvantoll
Copy link
Contributor Author

@rosen-vladimirov
Copy link
Contributor

@tjvantoll
I've tried the steps manually and they seems to work on my side. It looks like node_modules is not correct. I'm not sure what's the caching of node_modules, but can you try removing this line:
https://github.com/NativeScript/sample-Groceries/blob/master/.travis.yml#L16

@tjvantoll
Copy link
Contributor Author

Hmmm... with that change the Android build failed but Travis thinks it passed https://travis-ci.org/NativeScript/sample-Groceries/builds/115421047. Also this doesn’t seem related 😕

This isn’t a huge deal. I’ll see if this repeats itself as I commit to this repo.

@tjvantoll
Copy link
Contributor Author

This worked on a subsequent commit, so I’ll assume the previous problem was some random issue, but I’ll continue to monitor these runs.

Closing this for now as as all seems well. Thanks @rosen-vladimirov @ligaz!

@rosen-vladimirov
Copy link
Contributor

Hey @tjvantoll , I've created a PR, that's passing the PR build:
https://travis-ci.org/NativeScript/sample-Groceries/builds/116765697

@covex-nn
Copy link
Contributor

I copied your .travis.yml to my project. Build was Done. Your build exited with 0., but it was stopped on Build 40% with error :asbg:generateInterfaceNamesList/ig/GetInterfaceNames : Unsupported major.minor version 52.0

So i forked you repository, added jdk: oraclejdk8 to .travis.yml (it was a guess) and Project was successfuly build

But i think tests were not executed:

NativeScript / 19 (4.4.4; sdk): Executed 0 of 0 SUCCESS (0 secs / 0 secs)
ERROR (0.17 secs / 0 secs)

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

4 participants