Skip to content

Commit

Permalink
Merge pull request #48 from levi-rs/remove-pbr
Browse files Browse the repository at this point in the history
Remove PBR and switch to Circle CI
  • Loading branch information
levi-rs committed Jan 20, 2019
2 parents b224789 + cdf6439 commit 71daa8b
Show file tree
Hide file tree
Showing 9 changed files with 219 additions and 231 deletions.
155 changes: 155 additions & 0 deletions .circleci/config.yml
@@ -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
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -100,3 +100,6 @@ ENV/

# mypy
.mypy_cache/

# TRAW specific ignores
**/VERSION
7 changes: 0 additions & 7 deletions .landscape.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

147 changes: 0 additions & 147 deletions ChangeLog

This file was deleted.

1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include traw/VERSION
39 changes: 0 additions & 39 deletions setup.cfg
@@ -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

0 comments on commit 71daa8b

Please sign in to comment.