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

Blog about Travis config? #162

Closed
morphatic opened this issue Nov 1, 2016 · 4 comments
Closed

Blog about Travis config? #162

morphatic opened this issue Nov 1, 2016 · 4 comments

Comments

@morphatic
Copy link

Thank you for sharing your testing config! It's perfect for my current project.

I've tried to figure out your Travis setup, but I'm getting stuck on some of the directories that are specific to your project (e.g. /home/travis/build/lathonez/clicker/) and figuring out what values I should change these to in my own project.

Thanks!

@lathonez
Copy link
Owner

lathonez commented Nov 1, 2016

It's been on my list to do for ages, you're the first one that's asked for it.

It was tricky enough to get going, particularly the android build. The goal for me eventually is to get a matrix building iOS also.

IIRC I couldn't get ~/ to expand properly, so I just had to use the absolute path (with my travis username). If you use the same config just change lathonez to your username.

If you've other questions I'm happy to help, it's unlikely that I'll have time to blog on it in the near future.

@lathonez lathonez closed this as completed Nov 1, 2016
@morphatic
Copy link
Author

It looks like $TRAVIS_BUILD_DIR resolves to /home/travis/build/[username]/[projectname] and is a pre-configured environment variable. I edited those lines of .travis.yml to look like:

after_failure:
  - cat $TRAVIS_BUILD_DIR/python_serve.log
  - cat $TRAVIS_BUILD_DIR/ionic_serve.log

That being said, in this build it appears that there were no log files generated, even though the build failed. Perhaps it was because the failures happened in other parts of the code. Still working out how to get the e2e stuff working, but your examples have been EXCELLENT and I'm confident I'll figure it out. Much gratitude!

@lathonez
Copy link
Owner

lathonez commented Nov 2, 2016

It looks like $TRAVIS_BUILD_DIR resolves to /home/travis/build/[username]/[projectname] and is a pre-configured environment variable.

Nice: 9f81dc4

Perhaps it was because the failures happened in other parts of the code.

Yes those log files will be populated only if the server manages to run

Still working out how to get the e2e stuff working

I had a look at that build, you're missing ts-node

but your examples have been EXCELLENT and I'm confident I'll figure it out. Much gratitude!

Thanks - and thanks for the change here.

@morphatic
Copy link
Author

Success!!!

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