Keats / kickstart

A scaffolding tool to get new projects up and running quickly
MIT License
354 stars 24 forks source link

Fix generation::tests::can_generate_from_remote_repo test in travis (linux) #18

Closed Keats closed 4 years ago

Keats commented 5 years ago

For some reason it fails to clone the repository:

thread 'generation::tests::can_generate_from_remote_repo' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Git { err: Os { code: 2, kind: NotFound, message: "No such file or directory" } })', libcore/result.rs:945:5

I tried running the command manually in travis and it worked fine so not too sure what's happening. It also works fine on my machine and on Mac/Windows CI.

Arteneko commented 5 years ago

Would running tests in a docker work to reproduce tests ?

If my memory's correct, Travis is running tests inside a docker instance, so making a Dockerfile to run them may be a good reproducing environment.

Keats commented 5 years ago

It could help yes. The weird thing is I have other projects with tests writing in temp folder on travis with no issues whatsoever so I'm not sure where it's coming from

Arteneko commented 5 years ago

BTW, I may be mistaken, but your .travis-ci.yml contains a secret. Just fyi

Keats commented 5 years ago

It does, but it's an encrypted one ;)

On Tue, Aug 7, 2018 at 7:49 PM, Ivan Delsinne notifications@github.com wrote:

BTW, I may be mistaken, but your .travis-ci.yml contains a secret. Just fyi

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Keats/kickstart/issues/18#issuecomment-411143745, or mute the thread https://github.com/notifications/unsubscribe-auth/AApho8nHrN7ut3cKNthCD4hyPmBpgwKiks5uOdMvgaJpZM4VsWCJ .

Arteneko commented 5 years ago

better safe than sorry anyways

Keats commented 4 years ago

That's fixed in the v1 branch

Keats commented 4 years ago

And it's back on travis

Keats commented 4 years ago

The issue is likely some permission issue on the tmp dir on travis