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

#24 - fixes tests failing in travis #26

Merged
merged 4 commits into from
Dec 26, 2018

Conversation

rahgurung
Copy link
Contributor

used pip liked earlier

@rahgurung
Copy link
Contributor Author

@aashutoshrathi yeah moving back to pip from pip3 fixed the tests.

@rahgurung rahgurung changed the title fixes tests #24 - fixes tests failing in travis Dec 24, 2018
@aashutoshrathi
Copy link
Owner

Can you also add to deploy only if branch is master

@rahgurung
Copy link
Contributor Author

rahgurung commented Dec 24, 2018

@rahgurung
Copy link
Contributor Author

Can you also add to deploy only if branch is master

that's exactly what we need.

@aashutoshrathi
Copy link
Owner

Yes, just a single if in travis.
And also add the command sls deploy to after succes

Copy link
Owner

@aashutoshrathi aashutoshrathi left a comment

Choose a reason for hiding this comment

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

Check comments, do something like that

.travis.yml Outdated Show resolved Hide resolved
@aashutoshrathi
Copy link
Owner

That's weird tests failed again.

But do one thing before pytest.
Create a file named serverless.env.yml and these contents into it

TELEGRAM_TOKEN: ${TELEGRAM_TOKEN}
CONTRI_API: ${CONTRI_API}

@aashutoshrathi
Copy link
Owner

Travis gave up?

@rahgurung
Copy link
Contributor Author

nah , it was error in my yml.

@aashutoshrathi
Copy link
Owner

If result return 404 add a separate test for that.

@aashutoshrathi
Copy link
Owner

@gurungrahul2 doing it?

@rahgurung
Copy link
Contributor Author

yeah ! will continue after a break.

@aashutoshrathi
Copy link
Owner

I think we need to be quick with this PR, also in process commits, please comment sls deploy, else bot will stop working for a while

@aashutoshrathi
Copy link
Owner

aashutoshrathi commented Dec 24, 2018

Use this: https://stackoverflow.com/a/53130965/7326407

Stack Overflow
I have set up travis to test my project, and to deploy a docker build for every commit.

What I really want to do, is to test every commit I have, and only when it is being rebased to master, deplo...

@rahgurung
Copy link
Contributor Author

but deploy is fine, do we really wanna do this?

@aashutoshrathi
Copy link
Owner

Yes, we need to do this.

@aashutoshrathi
Copy link
Owner

Please squash

@rahgurung
Copy link
Contributor Author

sure

@aashutoshrathi
Copy link
Owner

Please squash all commits into one

Copy link
Owner

@aashutoshrathi aashutoshrathi left a comment

Choose a reason for hiding this comment

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

Before doing another commit please squash all commits in one.

@rahgurung
Copy link
Contributor Author

@aashutoshrathi sure.

@aashutoshrathi
Copy link
Owner

Also, add deploy tab

@aashutoshrathi
Copy link
Owner

Add that cat command too, which creates serverless file, I think I will need to rewrite tests.

@aashutoshrathi
Copy link
Owner

aashutoshrathi commented Dec 25, 2018

Let the tests fail, because they are wrong due to change of code

@rahgurung
Copy link
Contributor Author

Let the tests fail, because they are wrong due to change of code

only two tests are failing for me.

@rahgurung
Copy link
Contributor Author

why tests are passing on my local machine ?

@rahgurung
Copy link
Contributor Author

@aashutoshrathi I have commented two cases which are failing unexpectedly, everything else looks fine.

@rahgurung
Copy link
Contributor Author

rahgurung commented Dec 25, 2018

Have a look at log, https://travis-ci.org/aashutoshrathi/git-profiler-bot/builds/472058814 I think type empty is matched with User , and in Email empty with none. @aashutoshrathi

@aashutoshrathi
Copy link
Owner

Do this please #26 (comment)

('Name', 'name'),
('Company', 'company'),
('Blog', 'blog'),
('Email', 'email'),
# ('Email', 'email'),
Copy link
Owner

Choose a reason for hiding this comment

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

Also remove these lines completely.

Copy link
Owner

@aashutoshrathi aashutoshrathi left a comment

Choose a reason for hiding this comment

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

Do this please #26 (comment)
Else, bot won't work on deploy.

@aashutoshrathi aashutoshrathi merged commit 6d217d1 into aashutoshrathi:master Dec 26, 2018
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

Successfully merging this pull request may close these issues.

2 participants