Skip to content

Commit

Permalink
further fixing broken ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
c17r committed Apr 29, 2021
1 parent c21afe5 commit 231a73e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ install:
- make
- pip install coveralls

script: make coverage
script:
- make init
- make coverage

after_success: coveralls
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
.PHONY: readme

init:
@pip install -U pipenv
@pipenv install --dev
@pip install -U poetry
@poetry install

update:
@pipenv update --dev
@poetry update

flake:
@pipenv run flake8
@poetry run flake8

test: flake
@pipenv run py.test
@poetry run py.test

coverage: flake
@pipenv run py.test --cov-report term-missing:skip-covered --cov=.
@poetry run py.test --cov-report term-missing:skip-covered --cov=.

readme:
@pipenv run python -c 'from src import aturan_calendar as cal; from scripts.make_readme import write_doc; write_doc(cal, "README.rst")'
@poetry run python -c 'from src import aturan_calendar as cal; from scripts.make_readme import write_doc; write_doc(cal, "README.rst")'

tox: readme
@pipenv run tox --workdir ~/.cache/tox
@poetry run tox --workdir ~/.cache/tox

upload: readme
@pipenv run ./setup.py upload
@poetry run ./setup.py upload

test-upload: readme
@pipenv run ./setup.py test_upload
@poetry run ./setup.py test_upload

clean:
@find -E . -regex ".*\.py[cod]" -delete
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ tox_pyenv_fallback = False
passenv = HOME
deps = poetry
commands =
poetry run make coverage
pipenv run make coverage
make init
make coverage

0 comments on commit 231a73e

Please sign in to comment.