Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Update .travis.yml for CI support #24

Closed
wants to merge 2 commits into from
Closed

Update .travis.yml for CI support #24

wants to merge 2 commits into from

Conversation

kiryteo
Copy link

@kiryteo kiryteo commented Dec 30, 2017

Added 'coala --ci' command to travis.yml file, to import coala into Travis CI build.
Fixes #22

.travis.yml Outdated
@@ -51,6 +51,7 @@ script:
- sed -i.bak '/bears = GitCommitBear/d' .coafile
# Server side tests.
- coverage run $(which behave) ./tests/server.features
- run coala --ci
Copy link
Member

Choose a reason for hiding this comment

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

run is not a command, it should be coala --ci, IMO

@gaocegege
Copy link
Member

And please read http://api.coala.io/en/latest/Developers/Newcomers_Guide.html to follow the convention of our community :-)

@kiryteo
Copy link
Author

kiryteo commented Dec 30, 2017

I've changed the command, do check if possible

@gaocegege
Copy link
Member

@kiryteo

Thanks for your contribution, your code works for me but the commit message could be better: http://api.coala.io/en/latest/Developers/Writing_Good_Commits.html

Please refine the commit message and it will help you to be a good contributor :-)

@kiryteo
Copy link
Author

kiryteo commented Dec 31, 2017

I've added a little description for the commit, thanks for the guidance.!

@gaocegege
Copy link
Member

Great! Could you push your commit to review?

@kiryteo
Copy link
Author

kiryteo commented Dec 31, 2017

I'll just close this PR and create a new one with all things done rightly.. Is that okay.?

@gaocegege
Copy link
Member

@kiryteo I don't think so, you could run git reset HEAD~1 in your master branch, and the command will reset your latest commit. Then you could commit the changes again and git push --force to override the commit 2f12bb3

@gaocegege
Copy link
Member

There is no need to file a new PR since it does the same thing as this one.

@kiryteo
Copy link
Author

kiryteo commented Dec 31, 2017 via email

@kiryteo
Copy link
Author

kiryteo commented Dec 31, 2017

I haven't used git from terminal for this changes.. I've just added the necessary command to my forked repository and made the pull request.

@gaocegege
Copy link
Member

Well, I think it is better to learn git basics in terminal since it is the basis of our project :-)

@kiryteo
Copy link
Author

kiryteo commented Dec 31, 2017 via email

@gaocegege
Copy link
Member

Go ahead and if you have any question you could ask here or our gitter channel https://gitter.im/coala/coala

@kiryteo
Copy link
Author

kiryteo commented Dec 31, 2017 via email

@gaocegege
Copy link
Member

Hi @kiryteo

Is there any update?

@kiryteo
Copy link
Author

kiryteo commented Mar 31, 2018

@gaocegege I have added the commit for review, please have a look.
Sorry for the delay.

@gaocegege
Copy link
Member

Hi, please squash the commit and repush, then we could merge it.

@kiryteo
Copy link
Author

kiryteo commented Apr 2, 2018

@gaocegege Please do have a look.. I think now it should be okay..

@gaocegege
Copy link
Member

Hi, @kiryteo

There are two commits now and I think we could squash it to one :)

Copy link
Member

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

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

Squash your commits please, or we close the PR as abandoned.

@jayvdb
Copy link
Member

jayvdb commented May 5, 2018

ping @kiryteo

travis.yml : Add CI for coala

This adds ``coala --ci`` to have CI support for coala

Fixes #22
@gitmate-bot
Copy link

Comment on eff372c.

Shortlog of HEAD commit isn't in imperative mood! Bad words are 'Updated'

Origin: GitCommitBear, Section: commit.

@kiryteo kiryteo changed the title Update .travis.yml Updated .travis.yml for CI support May 5, 2018
@kiryteo kiryteo changed the title Updated .travis.yml for CI support Update .travis.yml for CI support May 5, 2018
@kiryteo
Copy link
Author

kiryteo commented May 5, 2018

@jayvdb I have squashed the commits.

@gaocegege
Copy link
Member

Please resolve the conflicts 😄

@kiryteo
Copy link
Author

kiryteo commented May 5, 2018

@gaocegege so should I remove the '- coverage run -a -m unittest discover -s tests' part. my commit conflicts with that..

@gaocegege
Copy link
Member

You could rebase the master locally and use tools to solve them.

Copy link
Member

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

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

rebase hasnt worked.

I suggest you come onto gitter and ask someone to help you step by step to fix this.

@gitmate-bot
Copy link

Comment on eff372c.

Shortlog of HEAD commit isn't in imperative mood! Bad words are 'Updated'

Origin: GitCommitBear, Section: commit.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 63.

The code does not comply to PEP8.

Origin: PEP8Bear, Section: autopep8.

The issue can be fixed by applying the following patch:

--- a/tmp/tmp362oju65/tests/server.features/steps/jsonrpc_steps.py
+++ b/tmp/tmp362oju65/tests/server.features/steps/jsonrpc_steps.py
@@ -60,7 +60,8 @@
 @given('the JSONRPC2Connection instance')
 def step_impl(context):
     context.f = tempfile.TemporaryFile()
-    context.jsonConn = JSONRPC2Connection(conn=TCPReadWriter(context.f, context.f))
+    context.jsonConn = JSONRPC2Connection(
+        conn=TCPReadWriter(context.f, context.f))
 
 
 @when('I write a request to the JSONRPC2Connection with id')

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 10.

E501 line too long (82 > 79 characters)

Origin: PycodestyleBear (E501), Section: autopep8.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 63.

E501 line too long (83 > 79 characters)

Origin: PycodestyleBear (E501), Section: autopep8.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 10.

Line is longer than allowed. (82 > 79)

Origin: LineLengthBear, Section: linelength.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 63.

Line is longer than allowed. (83 > 79)

Origin: LineLengthBear, Section: linelength.

@gitmate-bot
Copy link

Comment on eff372c.

Shortlog of HEAD commit isn't in imperative mood! Bad words are 'Updated'

Origin: GitCommitBear, Section: commit.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 63.

The code does not comply to PEP8.

Origin: PEP8Bear, Section: autopep8.

The issue can be fixed by applying the following patch:

--- a/tmp/tmp362oju65/tests/server.features/steps/jsonrpc_steps.py
+++ b/tmp/tmp362oju65/tests/server.features/steps/jsonrpc_steps.py
@@ -60,7 +60,8 @@
 @given('the JSONRPC2Connection instance')
 def step_impl(context):
     context.f = tempfile.TemporaryFile()
-    context.jsonConn = JSONRPC2Connection(conn=TCPReadWriter(context.f, context.f))
+    context.jsonConn = JSONRPC2Connection(
+        conn=TCPReadWriter(context.f, context.f))
 
 
 @when('I write a request to the JSONRPC2Connection with id')

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 10.

E501 line too long (82 > 79 characters)

Origin: PycodestyleBear (E501), Section: autopep8.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 63.

E501 line too long (83 > 79 characters)

Origin: PycodestyleBear (E501), Section: autopep8.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 10.

Line is longer than allowed. (82 > 79)

Origin: LineLengthBear, Section: linelength.

@gitmate-bot
Copy link

Comment on eff372c, file tests/server.features/steps/jsonrpc_steps.py, line 63.

Line is longer than allowed. (83 > 79)

Origin: LineLengthBear, Section: linelength.

@kiryteo
Copy link
Author

kiryteo commented Jun 1, 2018

@gaocegege resolved conflict, please have a look.

@TravisBuddy
Copy link

Travis tests have failed

Hey @kiryteo,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

3rd Build

coala --ci
[WARNING][20:05:18] Implicit 'Default' section inheritance is deprecated. It will be removed soon. To silence this warning remove settings in the 'Default' section from your coafile. You can use dots to specify inheritance: the section 'all.python' will inherit all settings from 'all'.
[WARNING][20:05:18] Section `todos` contain invalid language setting: 'Language `python3` is not a valid language name or not recognized by coala.'
Executing section python...
**** SpaceConsistencyBear [Section <empty> | Severity NORMAL] ****
!    ! Line contains following spacing inconsistencies:
!    ! - No newline at EOF.
[----] /home/travis/build/coala/coala-vs-code/tests/resources/unqualified.py
[++++] /home/travis/build/coala/coala-vs-code/tests/resources/unqualified.py
[   2]   a = 1
[   2]   a = 1
[INFO][20:05:19] Applied 'ShowPatchAction' on 'tests/resources/unqualified.py' from 'SpaceConsistencyBear'.
Executing section autopep8...
**** PEP8Bear [Section <empty> | Severity NORMAL] ****
!    ! The code does not comply to PEP8.
[----] /home/travis/build/coala/coala-vs-code/tests/server.features/steps/coalashim_steps.py
[++++] /home/travis/build/coala/coala-vs-code/tests/server.features/steps/coalashim_steps.py
[  23]     context.path = os.path.join(context.dir, 'tests', 'resources', 'qualified.py')
[  23]     context.path = os.path.join(
[  24]         context.dir, 'tests', 'resources', 'qualified.py')
[INFO][20:05:24] Applied 'ShowPatchAction' on 'tests/server.features/steps/coalashim_steps.py' from 'PEP8Bear'.
**** PEP8Bear [Section <empty> | Severity NORMAL] ****
!    ! The code does not comply to PEP8.
[----] /home/travis/build/coala/coala-vs-code/tests/server.features/steps/coalashim_steps.py
[++++] /home/travis/build/coala/coala-vs-code/tests/server.features/steps/coalashim_steps.py
[  51]     context.path = os.path.join(context.dir, 'tests', 'resources', 'unqualified.py')
[  51]     context.path = os.path.join(
[  52]         context.dir, 'tests', 'resources', 'unqualified.py')
[INFO][20:05:24] Applied 'ShowPatchAction' on 'tests/server.features/steps/coalashim_steps.py' from 'PEP8Bear'.
[WARNING][20:05:24] PycodestyleBear (E501): This result has no patch attached.
[WARNING][20:05:24] PycodestyleBear (E501): This result has no patch attached.

tests/server.features/steps/coalashim_steps.py
[  23] ····context.path·=·os.path.join(context.dir,·'tests',·'resources',·'qualified.py')
**** PycodestyleBear (E501) [Section: autopep8 | Severity: NORMAL] ****
!    ! E501 line too long (82 > 79 characters)

tests/server.features/steps/coalashim_steps.py
[  51] ····context.path·=·os.path.join(context.dir,·'tests',·'resources',·'unqualified.py')
**** PycodestyleBear (E501) [Section: autopep8 | Severity: NORMAL] ****
!    ! E501 line too long (84 > 79 characters)
**** PEP8Bear [Section <empty> | Severity NORMAL] ****
!    ! The code does not comply to PEP8.
[----] /home/travis/build/coala/coala-vs-code/tests/resources/unqualified.py
[++++] /home/travis/build/coala/coala-vs-code/tests/resources/unqualified.py
[   2]   a = 1
[   2]     a = 1
[INFO][20:05:24] Applied 'ShowPatchAction' on 'tests/resources/unqualified.py' from 'PEP8Bear'.
[WARNING][20:05:24] PycodestyleBear (E111): This result has no patch attached.
[WARNING][20:05:24] PycodestyleBear (W292): This result has no patch attached.

tests/resources/unqualified.py
[   2] ··a·=·1
**** PycodestyleBear (E111) [Section: autopep8 | Severity: NORMAL] ****
!    ! E111 indentation is not a multiple of four

tests/resources/unqualified.py
[   2] ··a·=·1
**** PycodestyleBear (W292) [Section: autopep8 | Severity: NORMAL] ****
!    ! W292 no newline at end of file
Executing section linelength...
[WARNING][20:05:25] LineLengthBear: This result has no patch attached.
[WARNING][20:05:25] LineLengthBear: This result has no patch attached.

tests/server.features/steps/coalashim_steps.py
[  23] ····context.path·=·os.path.join(context.dir,·'tests',·'resources',·'qualified.py')
**** LineLengthBear [Section: linelength | Severity: NORMAL] ****
!    ! Line is longer than allowed. (82 > 79)

tests/server.features/steps/coalashim_steps.py
[  51] ····context.path·=·os.path.join(context.dir,·'tests',·'resources',·'unqualified.py')
**** LineLengthBear [Section: linelength | Severity: NORMAL] ****
!    ! Line is longer than allowed. (84 > 79)
Executing section commit...
Executing section yml...
[WARNING][20:05:26] YAMLLintBear: This result has no patch attached.

.travis.yml
[  48] #··#·Integration·tests.
**** YAMLLintBear [Section: yml | Severity: NORMAL] ****
!    ! comment not indented like content (comments-indentation)
Executing section cli...

@gaocegege
Copy link
Member

I suggest you come onto gitter and ask someone to help you step by step to fix this.

PTAL

@jayvdb jayvdb closed this Jun 9, 2018
@jayvdb
Copy link
Member

jayvdb commented Jun 9, 2018

Closed due to inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

5 participants