oaleeapp / SwiftEyes

An easy way to access OpenCV library from Swift.
https://oaleeapp.github.io/SwiftEyes/
Other
8 stars 1 forks source link

Travis-CI Issues #1

Open dingwilson opened 7 years ago

dingwilson commented 7 years ago

Travis CI shield does not properly render in README.md

oaleeapp commented 7 years ago

Hello @dingwilson,

Thanks for the issue, I've updated the type, and trying to make Travis CI works out, will be fixed soon.

Cheers.

Victor Lee

dingwilson commented 7 years ago

Hey @oaleeapp,

Sounds great! Your repository looks great, and I'm excited to see what else you build upon this!

I looked through your Travis-CI build logs, and it seems like it is erroring out because it cannot find the OpenCV pod dependency. Your .travis.yml build config runs pod install on the podfile inside of Example, but the podfile only has SwiftEyes listed as the only dependency. I think that if OpenCV-Dynamic is added back into the Podfile, that might solve the issue you're currently running into. (it seems to be in your Podfile.lock file, but not the Podfile itself...)

Regards, Wilson Ding

oaleeapp commented 7 years ago

Hello @dingwilson ,

Thanks for the suggestion, I saw that podfile.lock has the - OpenCV-Dynamic (3.2.3), but I already add the dependency here s.dependency 'OpenCV-Dynamic', '~> 3.x' in SwiftEyes.podspec. I'm not sure should I add in the podfile again or not, but I will try it.

Cheers,

Victor Lee

oaleeapp commented 7 years ago

I'd modify the travis.yml and add - pod setup before install, which can fix the OpenCV-Dynamic issue, but it seems take too much time, and can't be done in the end....

$ pod install --project-directory=Example
Analyzing dependencies
Fetching podspec for `SwiftEyes` from `../`
Downloading dependencies
Installing OpenCV-Dynamic (3.2.3)
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated
dingwilson commented 7 years ago

Ah okay I see.. If I remember correctly, the OpenCV-Dynamic pod does take a significant amount of time to install (more than ~20 minutes). You can probably use travis_wait 30 pod install, where the 30 represents the amount of time to wait before terminating the build. (or maybe even longer, just in case..)

See documentation for travis_wait

oaleeapp commented 7 years ago

I just reached the timeout limit, seems OpenCV-Dynamic was really take a lot of time to install.

$ travis_wait 180 pod install --project-directory=Example
Still running (46 of 180): pod install --project-directory=Example
The job exceeded the maximum time limit for jobs, and has been terminated.

Will try to find other way to fix it.

By the way, I think it works find when others wants to use this pod, although the Travis.CI tag is error.