Skip to content

Commit

Permalink
Update CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
clayman083 committed Mar 21, 2019
1 parent 59b59bd commit 644527d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
30 changes: 22 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
sudo: required

---
language: python
python:
- 3.6
- "3.6"

sudo: required

services:
- docker

install:
- pip install tox '.[develop]'
addons:
apt:
packages:
- python-pip

script:
- make lint
- make test-all
jobs:
include:
- stage: "test"
name: "Test"
script:
- pip install tox
- tox -- --pg-image=postgres:alpine tests

- stage: "publish"
name: "Publish"
if: tag IS present
script:
- pip install twine
- make dist
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ coverage: ## check code coverage quickly with the default Python
coverage html
$(BROWSER) htmlcov/index.html

release: clean ## package and upload a release
twine upload dist/*

dist: clean ## builds source and wheel package
python setup.py sdist
python setup.py bdist_wheel
ls -l dist

release: dist ## package and upload a release
twine upload dist/*

install: clean ## install the package to the active Python's site-packages
python setup.py install
12 changes: 0 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
[flake8]
exclude =
.git,
__pycache__

max-complexity = 10
max-line-length = 80

application-import-names = pytest_postgres
import-order-style = smarkets


[tox]
envlist = py36

Expand Down

0 comments on commit 644527d

Please sign in to comment.