Permalink
Browse files

add travis CI (#28)

  • Loading branch information...
leifwalsh authored and thejunglejane committed May 20, 2018
1 parent 5b3e56a commit 5266ff787f7847bae3dcc89093d8ac7421710d96
@@ -1,25 +1,3 @@
#
# Copyright (c) 2018 Two Sigma Open Source, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#

[html]
directory = build/coverage/html

@@ -0,0 +1,7 @@
sudo: false
language: python
python:
- "3.5"
- "3.6"
install: pip install tox-travis
script: tox
@@ -13,3 +13,4 @@ sphinx_rtd_theme = "*"
coverage = "*"
"flake8" = "*"
tox = "*"
"flake8-per-file-ignores" = "*"
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "c7e5bcfffb3daa285571cc0d0be03b06f811a36702272ab17e4323a618820f4a"
"sha256": "681700119a5eb24f47a4d4c3b1bde1d3876a88cde3dba88676c9a82abb6e1ecd"
},
"pipfile-spec": 6,
"requires": {},
@@ -261,6 +261,14 @@
],
"version": "==3.5.0"
},
"flake8-per-file-ignores": {
"hashes": [
"sha256:3c4b1d770fa509aaad997ca147bd3533b730c3f6c48290b69a4265072c465522",
"sha256:4ee4f24cbea5e18e1fefdfccb043e819caf483d16d08e39cb6df5d18b0407275"
],
"index": "pypi",
"version": "==0.6"
},
"idna": {
"hashes": [
"sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f",
@@ -302,6 +310,12 @@
],
"version": "==17.1"
},
"pathmatch": {
"hashes": [
"sha256:b35db907d0532c66132e5bc8aaa20dbfae916441987c8f0abd53ac538376d9a7"
],
"version": "==0.2.1"
},
"pluggy": {
"hashes": [
"sha256:7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff",
@@ -409,6 +423,14 @@
"index": "pypi",
"version": "==3.0.0"
},
"typing": {
"hashes": [
"sha256:3a887b021a77b292e151afb75323dea88a7bc1b3dfa92176cff8e44c8b68bddf",
"sha256:b2c689d54e1144bbcfd191b0832980a21c2dbcf7b5ff7a66248a60c90e951eb8",
"sha256:d400a9344254803a2368533e4533a4200d21eb7b6b729c173bc38201a74db3f2"
],
"version": "==3.6.4"
},
"urllib3": {
"hashes": [
"sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b",

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -120,9 +120,10 @@ Ready to contribute? Here's how to set up marbles for local development.
2. The mixins live in :mod:`marbles.mixins`, which you'll find inside the
repo under :file:`marbles/mixins`.

5. When you're done making changes, check that your changes pass flake8 and the
tests. These should be run inside the package you've made changes to, so if
you've made changes to :mod:`marbles.core`, you should run this::
5. As you make changes, you can run the tests and lint with
flake8. These should be run inside the package you've made changes
to, so if you've made changes to :mod:`marbles.core`, you should
run this::

$ cd marbles/core
$ python setup.py flake8
@@ -131,6 +132,14 @@ Ready to contribute? Here's how to set up marbles for local development.
.. note:: Don't worry about bumping version numbers yourself. We'll
handle this in the release that includes your changes.

If you want to run the full set of linting, testing, and coverage
measurement that will be done in CI, you can use `tox
<https://tox.readthedocs.io>`_. With no arguments, it runs
everything, with ``-e`` you can select a subset::

$ tox
$ tox -e coverage,flake8,docs

6. Commit your changes and push your branch to GitHub::

$ git add .
@@ -20,7 +20,7 @@ def reason(self):
return self._reason


class requests(object):
class requests(object): # noqa: F811

@classmethod
def put(cls, endpoint, data=None):
@@ -1,25 +1,3 @@
#
# Copyright (c) 2018 Two Sigma Open Source, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#

[run]
branch = True
source = marbles
@@ -0,0 +1,4 @@
[flake8]
exclude =
build/,
*.eggs
@@ -30,7 +30,8 @@

setup_requires = [
'coverage',
'flake8'
'flake8',
'flake8-per-file-ignores'
]

tests_require = [
@@ -1,25 +1,3 @@
#
# Copyright (c) 2018 Two Sigma Open Source, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#

[run]
branch = True
source = marbles
@@ -0,0 +1,8 @@
[flake8]
exclude =
build/,
*.eggs

per-file-ignores =
marbles/mixins/marbles/mixins/mixins.py: E501
marbles/mixins/tests/test_mixins.py: E501
@@ -30,7 +30,8 @@

setup_requires = [
'coverage',
'flake8'
'flake8',
'flake8-per-file-ignores'
]

tests_require = [
@@ -1,28 +1,10 @@
#
# Copyright (c) 2018 Two Sigma Open Source, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#

[flake8]
exclude = \
build/
exclude =
build/,
docs/conf.py,
*.eggs,
.tox/

per-file-ignores =
marbles/mixins/marbles/mixins/mixins.py: E501
marbles/mixins/tests/test_mixins.py: E501
@@ -1,5 +1,10 @@
[tox]
envlist = flake8, coverage, docs, py36
envlist = flake8, coverage, docs, py35, py36

[travis]
python =
3.6: flake8, coverage, docs, py36
3.5: py35

[testenv]
skip_install = True

0 comments on commit 5266ff7

Please sign in to comment.