Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from levi-rs/remove-pbr
Remove PBR and switch to Circle CI
- Loading branch information
Showing
9 changed files
with
219 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
version: 2.1 | ||
# ################################ | ||
# | ||
# NOTE: "foo: &foo" and "run: *foo" are YAML anchors. | ||
# See the following for more info: https://blog.daemonl.com/2016/02/yaml.html | ||
# | ||
# ################################ | ||
build-filters: &build-filters | ||
tags: | ||
ignore: /.*/ | ||
branches: | ||
only: /.*/ | ||
|
||
latest-filters: &latest-filters | ||
tags: | ||
ignore: /.*/ | ||
branches: | ||
only: master | ||
|
||
tag-filters: &tag-filters | ||
tags: | ||
only: /.*/ | ||
branches: | ||
ignore: /.*/ | ||
|
||
# ############################################ | ||
# | ||
# Set Circle CI Reusable Commands | ||
# | ||
# For more information, see the documentation: | ||
# https://circleci.com/docs/2.0/reusing-config | ||
# | ||
# ############################################ | ||
commands: | ||
run-tox: | ||
description: "Run Tox based Python tests" | ||
parameters: | ||
tox-env: | ||
type: string | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Test Dependencies | ||
command: | | ||
sudo pip install --upgrade pip setuptools | ||
sudo pip install --upgrade tox codecov | ||
- run: | ||
name: Run tests | ||
command: tox -e << parameters.tox-env >> | ||
- run: | ||
name: Report Coverage | ||
command: codecov --commit=$CIRCLE_SHA1 | ||
|
||
# ############################### | ||
# | ||
# CircleCI 2.1 Jobs | ||
# | ||
# ############################### | ||
jobs: | ||
tests-passed: | ||
docker: | ||
- image: bash:latest | ||
steps: | ||
- run: echo "All tests passed" | ||
lint: | ||
docker: | ||
- image: circleci/python:3.7 | ||
steps: | ||
- run-tox: | ||
tox-env: "lint" | ||
py27: | ||
docker: | ||
- image: circleci/python:2.7 | ||
steps: | ||
- run-tox: | ||
tox-env: "py27" | ||
py34: | ||
docker: | ||
- image: circleci/python:3.4 | ||
steps: | ||
- run-tox: | ||
tox-env: "py34" | ||
py35: | ||
docker: | ||
- image: circleci/python:3.5 | ||
steps: | ||
- run-tox: | ||
tox-env: "py35" | ||
py36: | ||
docker: | ||
- image: circleci/python:3.6 | ||
steps: | ||
- run-tox: | ||
tox-env: "py36" | ||
py37: | ||
docker: | ||
- image: circleci/python:3.7 | ||
steps: | ||
- run-tox: | ||
tox-env: "py37" | ||
|
||
push-package: | ||
docker: | ||
- image: circleci/python:3 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
sudo pip install --upgrade pip setuptools | ||
sudo pip install --upgrade wheel twine | ||
- run: | ||
name: Write version file | ||
command: echo -n $(git describe --tags --exact-match) > traw/VERSION | ||
- run: | ||
name: Create Package | ||
command: python setup.py sdist bdist_wheel | ||
- run: | ||
name: Upload Package | ||
command: twine upload dist/* | ||
|
||
# #################### | ||
# | ||
# CircleCI Workflow | ||
# | ||
# #################### | ||
workflows: | ||
version: 2 | ||
traw-workflow: | ||
jobs: | ||
- lint: | ||
filters: *build-filters | ||
- py27: | ||
filters: *build-filters | ||
- py34: | ||
filters: *build-filters | ||
- py35: | ||
filters: *build-filters | ||
- py36: | ||
filters: *build-filters | ||
- py37: | ||
filters: *build-filters | ||
- tests-passed: | ||
requires: | ||
- lint | ||
- py27 | ||
- py34 | ||
- py35 | ||
- py36 | ||
- py37 | ||
filters: *build-filters | ||
- push-package: | ||
requires: | ||
- tests-passed | ||
filters: *tag-filters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,3 +100,6 @@ ENV/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# TRAW specific ignores | ||
**/VERSION |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include traw/VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,2 @@ | ||
[metadata] | ||
name = traw | ||
author = Levi Noecker | ||
author-email = levi.noecker@gmail.com | ||
summary = TestRail API Wrapper | ||
description-file = README.rst | ||
home-page = https://github.com/levi-rs/testrail-api-wrapper | ||
license = MIT | ||
keywords = testrail client api wrapper traw | ||
classifier = | ||
Development Status :: 4 - Beta | ||
Environment :: Console | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: Implementation :: CPython | ||
|
||
[pbr] | ||
# Let pbr run sphinx-apidoc | ||
autodoc_tree_index_modules = True | ||
|
||
[build_sphinx] | ||
all_files = 1 | ||
builders = html,man | ||
build-dir = docs/build | ||
source-dir = docs/source | ||
|
||
[files] | ||
packages = | ||
traw | ||
|
||
[wheel] | ||
universal = 1 |
Oops, something went wrong.