Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #34 from tubone24/circleci
Browse files Browse the repository at this point in the history
Circleci
  • Loading branch information
tubone24 committed Feb 17, 2019
2 parents fa06bc3 + bc5a19a commit 0b52789
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 2
jobs:
build:
working_directory: ~/ebook_homebrew
docker:
- image: circleci/python:3.6.4
environment:
PIPENV_VENV_IN_PROJECT: true
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages
- run: mkdir test-results && sudo chown -R circleci:circleci test-results
- run:
command: |
sudo pip install pipenv
pipenv install --pre
- save_cache:
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
paths:
- ".venv"
- "/usr/local/bin"
- "/usr/local/lib/python3.6/site-packages"
- run:
command: |
pipenv run "pip install -r requirements-test.txt"
pipenv run "pip install wheel"
pipenv run "python setup.py install"
pipenv run "coverage run --source=ebook_homebrew -m pytest --it --junit-xml=test-results/test_results.xml"
pipenv run "python setup.py sdist bdist_wheel"
- store_test_results:
path: test-results
- store_artifacts:
path: dist
destination: tr1
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ The ``Ebook_homebrew`` is changing file name to only digit name like ``001.jpg``
.. image:: https://api.shippable.com/projects/5c64353c33944406008b4ae8/badge?branch=master
:target: https://app.shippable.com/github/tubone24/ebook_homebrew/dashboard

.. image:: https://circleci.com/gh/tubone24/ebook_homebrew.svg?style=svg
:target: https://circleci.com/gh/tubone24/ebook_homebrew

.. image:: https://img.shields.io/lgtm/alerts/g/tubone24/ebook_homebrew.svg?logo=lgtm&logoWidth=18
:target: https://lgtm.com/projects/g/tubone24/ebook_homebrew/alerts

Expand Down
3 changes: 3 additions & 0 deletions doc_src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Badges:
.. image:: https://api.shippable.com/projects/5c64353c33944406008b4ae8/badge?branch=master
:target: https://app.shippable.com/github/tubone24/ebook_homebrew/dashboard

.. image:: https://circleci.com/gh/tubone24/ebook_homebrew.svg?style=svg
:target: https://circleci.com/gh/tubone24/ebook_homebrew

.. image:: https://img.shields.io/lgtm/alerts/g/tubone24/ebook_homebrew.svg?logo=lgtm&logoWidth=18
:target: https://lgtm.com/projects/g/tubone24/ebook_homebrew/alerts

Expand Down

0 comments on commit 0b52789

Please sign in to comment.