Skip to content

Commit

Permalink
Merge pull request mercadona#1 from mercadona/configure-travis-ci
Browse files Browse the repository at this point in the history
Configure Travis CI
  • Loading branch information
andrewgy8 authored May 13, 2019
2 parents f91e916 + 25d6cc8 commit 0142865
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 25 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: python

services:
- postgresql

addons:
postgresql: "9.6"

python:
- "3.6"
- "3.7-dev"

sudo: false

install:
- make install-requirements
- make install-test-requirements

before_script:
- psql -c 'create database travis_ci_test;' -U postgres

script:
- make test

notifications:
email: false
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ lint: ## check style with flake8
test: ## run tests quickly with the default Python
python runtests.py tests

test-all: ## run tests on every Python version with tox
tox

coverage: ## check code coverage quickly with the default Python
coverage run --source django_pubsy runtests.py tests
coverage run --source rele runtests.py tests
coverage report -m
coverage html
open htmlcov/index.html
Expand All @@ -38,3 +35,10 @@ release: clean ## package and upload a release
sdist: clean ## package
python setup.py sdist
ls -l dist

install-requirements:
pip install -r requirements.txt

install-test-requirements:
pip install -r requirements_test.txt

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Relé

[![Build Status](https://travis-ci.org/mercadona/rele.svg?branch=master)](https://travis-ci.org/mercadona/rele)

Relé makes integration with Google PubSub easier and is ready to integrate seamlessly into any Django project.

## Motivation and Features
Expand Down
3 changes: 1 addition & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
coverage==4.4.1
flake8>=2.1.0
tox>=1.7.0
codecov>=2.0.0
pytest
pytest
19 changes: 0 additions & 19 deletions tox.ini

This file was deleted.

0 comments on commit 0142865

Please sign in to comment.