Add travis-ci for sugardough reference project. #14
Conversation
@magopian r? |
So, from what I understand, it's running the tests from the "inner" template directory, right? Very good idea, but I have another one (not necessarily better though): how about the travis file here creates a project the way we document it, and then run the tests in it? We could do that by creating a "test_sugardough.sh" script, launched from the
This has the added benefit of making sure there's no issue with cookiecutter itself with our template. Of course, travis could also run some more tests specific to the template itself, as explained in #12 Thoughts? |
Agreed! Actually I commented exactly the same thing here #12 (comment) I plan to add these tests as part of #16. Sounds good? |
Yep! |
Actually i'll try to update this PR to generate the project and run tests as you say. When we are done with this one I'll add project generation tests in #16. brb |
b1d4db6
to
5f70062
Compare
OK I added |
I believe it's just because there's no test to be run, so coveralls fails (because there's no coverage file generated maybe?) The flake8 errors are easy to fix I believe. |
55c339d
to
5f70062
Compare
6b73b7a
to
70eae4b
Compare
OK there's something strange going on that I cannot understand. When travis runs flake8 gives the following errors
All valid error because indeed those files don't have newlines at the end. But those files in the reference project and in the cookiecutter template do have newlines at the end. Also if I run I don't know what's going on here. We can temporarily ignore W292 but we should figure out why cookiecutter generates different project in travis. Can somebody cross check that these files have newlines in their local installs? |
5572011
to
9136b1f
Compare
Changes Unknown when pulling 9136b1f on glogiotatidis:travis into * on mozilla:master*. |
9136b1f
to
644b80b
Compare
Changes Unknown when pulling 644b80b on glogiotatidis:travis into * on mozilla:master*. |
That is odd... I don't have any errors on my test sugardough project: https://travis-ci.org/magopian/test_sugardough/jobs/43814764 When you say there is a newline, are you talking about the last character on a line, the |
The last (i do |
cookiecutter/cookiecutter#183 : what version of cookiecutter are we using on travis? Could that be the issue? |
If we change https://github.com/mozilla/sugardough/pull/14/files#diff-354f30a63fb0907d4ad57269548329e3R10 to be |
btw, how about leaving I'd also leave |
644b80b
to
5b4a7c2
Compare
erm yes... and I did pin packages to be on the safe side. Thanks for solving the mystery @magopian. This is now working and ready for review. |
5b4a7c2
to
a868485
Compare
@@ -17,6 +17,7 @@ Features: | |||
* [peep](https://github.com/erikrose/peep) ready. | |||
|
|||
[![Requirements Status](https://requires.io/github/mozilla/sugardough/requirements.svg?branch=master)](https://requires.io/github/mozilla/sugardough/requirements/?branch=master) | |||
[![Build Status](https://travis-ci.org/mozilla/sugardough.svg)](https://travis-ci.org/mozilla/sugardough) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I've used the shields.io
versions of the SVG in https://raw.githubusercontent.com/mozilla/sugardough/master/sugardough/README.md:
[![Build Status](https://img.shields.io/travis/mozilla/sugardough/master.svg)](https://travis-ci.org/mozilla/sugardough)
[![Coverage status](https://img.shields.io/coveralls/mozilla/sugardough/master.svg)](https://coveralls.io/r/mozilla/sugardough)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, changed both travis and requires.io
r+wc |
a868485
to
e1488a3
Compare
Merci! |
Add travis-ci for sugardough reference project.
No description provided.