Skip to content

Commit

Permalink
Add travis builds + code coverage reports (#1)
Browse files Browse the repository at this point in the history
* Add code coverage and travis build

Enable travis builds to build project and publish code coverage results.
Now we require all branches merged to main to pass the build and get
100% code coverage.
  • Loading branch information
EmilMaric authored Apr 7, 2021
1 parent 5356096 commit 622a053
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: python
python:
- '3.7'
before_install:
- pip install poetry
- pip install codecov
install:
- poetry install -v
- pip install tox-travis
- pip install flake8
script:
- tox
- flake8
after_success:
- codecov
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- poetry build
#deploy:
# skip_cleanup: true
# provider: pypi
# username: __token__
# password:
# secure:
# skip_existing: true
# on:
# branch: master
# tags: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Portfolio Rebalancer
=
[![Build Status](https://travis-ci.com/EmilMaric/portfolio-rebalancer.svg?branch=main)](https://travis-ci.com/EmilMaric/portfolio-rebalancer)
[![codecov](https://codecov.io/gh/EmilMaric/portfolio-rebalancer/branch/main/graph/badge.svg?token=XJ371LIRJB)](https://codecov.io/gh/EmilMaric/portfolio-rebalancer)
A CLI tool that informs you what buys you need to make to best rebalance your portfolio. The tool requires the following information in the form of a
CSV file:
- What assets you currently own. In the latest version, we only support putting a stock ticker here.
Expand Down
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
patch:
default:
target: 100%
project:
default:
target: 100%

comment: false

0 comments on commit 622a053

Please sign in to comment.