Skip to content

Commit 0630814

Browse files
committed
chore: Setup circleci
1 parent eae63f8 commit 0630814

File tree

7 files changed

+93
-3
lines changed

7 files changed

+93
-3
lines changed

.circleci/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/python:3.6.1
6+
steps:
7+
- checkout
8+
- run:
9+
command: |
10+
sudo apt install python-pip
11+
sudo pip install -U pip pipenv
12+
- run:
13+
command: |
14+
pipenv --python python3.6
15+
pipenv install --dev
16+
- run:
17+
command: |
18+
pipenv run pytest
19+
- run:
20+
command: |
21+
pipenv run flake8
22+
- run:
23+
command: |
24+
pipenv run safety check
25+
- store_artifacts:
26+
path: htmlcov
27+
destination: htmlcov
28+

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
omit = test/*

Pipfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ google_cloud_logger = {editable = true, path = "."}
99
[dev-packages]
1010
pytest = "~=3.9.3"
1111
pytest_mock = "~=1.10.0"
12-
flake8="~=3.6.0"
12+
pytest-cov = "~=2.6.0"
13+
flake8 = "~=3.6.0"
1314
yapf = "~=0.24.0"
1415
ipdb = "~=0.11"
1516
safety = "~=1.8.4"

Pipfile.lock

Lines changed: 47 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# python_google_cloud_logger
22

3+
[![CircleCI](https://circleci.com/gh/rai200890/python_google_cloud_logger.svg?style=svg&circle-token=cdb4c95268aa18f240f607082833c94a700f96e9)](https://circleci.com/gh/rai200890/python_google_cloud_logger)
4+
[![Maintainability](https://api.codeclimate.com/v1/badges/e988f26e1590a6591d96/maintainability)](https://codeclimate.com/github/rai200890/python_google_cloud_logger/maintainability)
5+
36
Python log formatter for Google Cloud
47

58
## Credits

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[pytest]
2-
addopts = -v -s
2+
addopts = -v -s --cov=google_cloud_logger --cov-report html --cov-report term

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,14 @@
1313
install_requires=[
1414
"python-json-logger>=v0.1.5",
1515
],
16+
classifiers=[
17+
"Development Status :: 3 - Alpha",
18+
"Environment :: Web Environment",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: MIT License",
21+
"Natural Language :: English",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 3 :: Only",
24+
"Topic :: System :: Logging"
25+
],
1626
zip_safe=False)

0 commit comments

Comments
 (0)