Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Add tox and travis support #9

Merged
merged 3 commits into from
Jun 12, 2017
Merged

Conversation

mbohlool
Copy link
Contributor

@mbohlool mbohlool commented Jun 8, 2017

fixes #3

based on #6 by @pokoli

.travis.yml Outdated
matrix:
include:
- python: 2.7
python: 3.4
Copy link

Choose a reason for hiding this comment

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

misssing "-"

@pokoli pokoli mentioned this pull request Jun 8, 2017
tox.ini Outdated
skipsdist = True
envlist = py

[testenv]
Copy link

Choose a reason for hiding this comment

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

What about coverage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All environment from .travis file will be passed to the main repo tox, coverage is running too (codecov is already commenting on the PR).

Copy link

@pokoli pokoli left a comment

Choose a reason for hiding this comment

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

There is some issue on .travis.yml

@mbohlool mbohlool mentioned this pull request Jun 8, 2017
@mbohlool mbohlool changed the title Add tox and travis support [WIP] Add tox and travis support Jun 8, 2017
@mbohlool mbohlool force-pushed the test branch 2 times, most recently from ca6626a to e478a85 Compare June 9, 2017 01:16
@codecov-io
Copy link

codecov-io commented Jun 9, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@8704ce3). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #9   +/-   ##
=========================================
  Coverage          ?   94.69%           
=========================================
  Files             ?        9           
  Lines             ?      698           
  Branches          ?        0           
=========================================
  Hits              ?      661           
  Misses            ?       37           
  Partials          ?        0
Impacted Files Coverage Δ
config/kube_config.py 96.57% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8704ce3...bb49e2c. Read the comment docs.

@mbohlool mbohlool changed the title [WIP] Add tox and travis support Add tox and travis support Jun 9, 2017
@mbohlool
Copy link
Contributor Author

mbohlool commented Jun 9, 2017

@pokoli this is ready now. Thanks for the review.

api_client.py Outdated
# coding: utf-8

"""
Copyright 2016 SmartBear Software
Copy link

Choose a reason for hiding this comment

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

Are we sure we can remove this copy right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I prefer not to remove that. Will fix.

git config user.email "[email protected]"
git config user.name "kubenetes client"
git rm -rf kubernetes/base
git commit -m "DO NOT MERGE, removing submodule for testing only"
Copy link

Choose a reason for hiding this comment

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

I'm wondering why is required to commit, can we avoid it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update-pep8 check will fail if there is an uncommited change.

Copy link

Choose a reason for hiding this comment

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

Acknowledged. I was not aware of this part! Great.

@pokoli
Copy link

pokoli commented Jun 9, 2017

@mbohlool Looks good to me. I added two minor comments, but for me it can be merged. Good work.

@pokoli
Copy link

pokoli commented Jun 12, 2017

LGTM

@mbohlool mbohlool merged commit feee797 into kubernetes-client:master Jun 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tox and travis
3 participants