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

Build stages on travis #134

Merged
merged 21 commits into from
Aug 31, 2017
Merged

Conversation

lipemorais
Copy link
Contributor

@lipemorais lipemorais commented Aug 19, 2017

What is the purpose of this Pull Request?
The purpose of this is introduce Build Stages feature on the project to address #129

What was done to achieve this purpose?
I edit the .travis.yml file to use this new feature.

How to test if it really works?
Here we have a green build using this feature.

Who can help reviewing it?
@Irio @cuducos @jtemporal @anaschwendler could help with this PR.

@coveralls
Copy link

coveralls commented Aug 19, 2017

Coverage Status

Coverage increased (+37.2%) to 85.476% when pulling dc3456d on lipemorais:build-stages-on-travis into d53d3f3 on datasciencebr:master.

script: coverage run -m unittest discover tests/journey

- stage: deploy
script: skip
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really necessary to be explicit? I thought not adding any would automagically skip the scripting step if not stated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! This is not necessary anymore. I will remove it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you do I'll merge this =)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that I already had answered it but this line is necessary based on this piece of build job documentation because each step try to run a script but it's not necessary for a deploy job.

@jtemporal jtemporal mentioned this pull request Aug 22, 2017
@anaschwendler
Copy link
Collaborator

Tested the PR and it seems to be working, I look into the code, but didn't know what to judge, maybe @jtemporal can do that part.

To test this PR, I clonned the project and ran into terminal: python -m unittest discover tests

@lipemorais
Copy link
Contributor Author

@anaschwendler would nice to try the same command coverage run -m unittest discover tests just to be completely sure. This command will run both, unit and journey tests.

@jtemporal
Copy link
Collaborator

jtemporal commented Aug 25, 2017

would nice to try the same command coverage run -m unittest discover tests just to be completely sure

Running coverage run -m unittest discover tests only runs unit tests.

Same happens with python -m unittest discover tests.

Trying to figure out how to run both tests with coverage. Will get back here once I got anything worth sharing

@jtemporal
Copy link
Collaborator

@cuducos just figured out! Thanks btw ❤

@lipemorais we need to add a __init__.py to tests/journey :)

That will be enough to make both test suites run =)

@coveralls
Copy link

coveralls commented Aug 25, 2017

Coverage Status

Coverage increased (+37.2%) to 85.476% when pulling 276d0a6 on lipemorais:build-stages-on-travis into d53d3f3 on datasciencebr:master.

@cuducos
Copy link
Collaborator

cuducos commented Aug 29, 2017

Should we add a version bump or a [ci skip] here…? I'm not sure.

@jtemporal
Copy link
Collaborator

Should we add a version bump or a [ci skip] here…? I'm not sure.

Actually we a have a conflict here since #132 was merged before this one... If @lipemorais could go ahead and fix the conflicts by updating the version to 12.1.1 I'll merge this right away.

This also means that #137 will also need some conflict solving but will be much better when taking into consideration releases.

@coveralls
Copy link

coveralls commented Aug 30, 2017

Coverage Status

Coverage increased (+28.2%) to 85.667% when pulling 5fdd055 on lipemorais:build-stages-on-travis into 790f79c on datasciencebr:master.

@jtemporal jtemporal merged commit 8c049f3 into okfn-brasil:master Aug 31, 2017
@lipemorais lipemorais deleted the build-stages-on-travis branch October 23, 2017 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants