[MRG + 1] Run codecov only once (#132)
* Run codecov only once * Update .travis.yml * Update .travis.yml * Add os based install to Makefile * Add requests like .travis.yml and Makefile * Add 'sudo: required' to .travis.yml * Add before_install * Make separate commandpull/2/head
parent
8d38907832
commit
1ba0cfc7bc
42
.travis.yml
42
.travis.yml
|
|
@ -1,20 +1,32 @@
|
||||||
sudo: false
|
sudo: true
|
||||||
language: python
|
language: python
|
||||||
cache: pip
|
cache: pip
|
||||||
python:
|
addons:
|
||||||
- "2.7"
|
apt:
|
||||||
- "3.5"
|
update: true
|
||||||
- "3.6"
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- python: 3.7
|
|
||||||
dist: xenial
|
|
||||||
sudo: true
|
|
||||||
before_install:
|
|
||||||
- sudo apt-get install python-tk python3-tk ghostscript
|
|
||||||
install:
|
install:
|
||||||
- pip install ".[dev]"
|
- make install
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- stage: test
|
||||||
script:
|
script:
|
||||||
- pytest --verbose --cov-config .coveragerc --cov-report term --cov-report xml --cov=camelot tests
|
- make test
|
||||||
after_success:
|
python: '2.7'
|
||||||
|
- stage: test
|
||||||
|
script:
|
||||||
|
- make test
|
||||||
|
python: '3.5'
|
||||||
|
- stage: test
|
||||||
|
script:
|
||||||
|
- make test
|
||||||
|
python: '3.6'
|
||||||
|
- stage: test
|
||||||
|
script:
|
||||||
|
- make test
|
||||||
|
python: '3.7'
|
||||||
|
dist: xenial
|
||||||
|
- stage: coverage
|
||||||
|
python: 3.6
|
||||||
|
script:
|
||||||
|
- make test
|
||||||
- codecov --verbose
|
- codecov --verbose
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
.PHONY: docs
|
||||||
|
INSTALL :=
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
|
ifeq ($(UNAME_S),Linux)
|
||||||
|
INSTALL := @sudo apt install python-tk python3-tk ghostscript
|
||||||
|
else ifeq ($(UNAME_S),Darwin)
|
||||||
|
INSTALL := @brew install tcl-tk ghostscript
|
||||||
|
else
|
||||||
|
INSTALL := @echo "Please install tk and ghostscript"
|
||||||
|
endif
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(INSTALL)
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install ".[dev]"
|
||||||
|
|
||||||
|
test:
|
||||||
|
pytest --verbose --cov-config .coveragerc --cov-report term --cov-report xml --cov=camelot tests
|
||||||
|
|
||||||
|
docs:
|
||||||
|
cd docs && make html
|
||||||
|
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
|
||||||
|
|
||||||
|
publish:
|
||||||
|
pip install twine
|
||||||
|
python setup.py sdist
|
||||||
|
twine upload dist/*
|
||||||
|
rm -fr build dist .egg camelot_py.egg-info
|
||||||
Loading…
Reference in New Issue