Skip to content

Commit

Permalink
Add more stages to complete travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tvoinarovskyi committed Aug 19, 2018
1 parent 04d95eb commit 9d708b3
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 32 deletions.
82 changes: 65 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,50 +20,98 @@ matrix:
include:
- stage: *stage_sanity_test
sudo: false
python: 3.5
script:
- make ci-test-unit
- sudo: false
python: &mainstream_python 3.6
script:
- make ci-test-unit
- sudo: false
python: 3.5
env: PYTHONASYNCIODEBUG=1 AIOKAFKA_NO_EXTENSIONS=1
script:
- make ci-test-unit
- sudo: false
python: 3.6
env: PYTHONASYNCIODEBUG=1 AIOKAFKA_NO_EXTENSIONS=1
script:
- make ci-test-unit

# All Package build combinations for newest Kafka
- stage: *stage_functional
sudo: true
python: 3.5
services:
- docker
env: KAFKA_VERSION=0.11.0.0 SCALA_VERSION=2.12 PYTHONASYNCIODEBUG=1
script:
- make ci-test-all
- sudo: true
python: 3.5
services:
- docker
env: KAFKA_VERSION=0.11.0.0 SCALA_VERSION=2.12 PYTHONASYNCIODEBUG=1 AIOKAFKA_NO_EXTENSIONS=1
script:
- make ci-test-all
- sudo: true
python: 3.6
services:
- docker
env: KAFKA_VERSION=0.11.0.0 SCALA_VERSION=2.12 PYTHONASYNCIODEBUG=1
script:
- make ci-test-all
- sudo: true
python: 3.6
services:
- docker
env: KAFKA_VERSION=0.11.0.0 SCALA_VERSION=2.12 PYTHONASYNCIODEBUG=1 AIOKAFKA_NO_EXTENSIONS=1
script:
- make ci-test-all

# Older Kafka versions with mainstream python
- sudo: true
python: *mainstream_python
services:
- docker
env: KAFKA_VERSION=0.9.0.1 SCALA_VERSION=2.11 PYTHONASYNCIODEBUG=1
script:
- make ci-test-all
- sudo: true
python: *mainstream_python
services:
- docker
env: KAFKA_VERSION=0.10.2.1 SCALA_VERSION=2.11 PYTHONASYNCIODEBUG=1
script:
- make ci-test-all

- stage: *stage_deploy
python: 3.6
python: *mainstream_python
script: skip
deploy:
provider: pypi
user: aio-libs-bot
password:
secure: BSV2mPhyeyM8N7IdNtAlF11+pAQu9jdJQUOWWSfQBar+qgfFobkm23OZtvVZzl68U+cYzROlv6m66Xu9SN5MdPezrEXKKmcnzC/iREzHyB//Edrj+WsyqbmeqW3MGNgUu3bGq23Jw629jU3oGCm59cCa04Z/ZLhWHowH0UVVI/cbzfI5nc0nJkPSzYE2+L5DUjLGUgAA2+bygAWu2DpaUlVq5Pd+ApRSwvhg+qV2QHYCM6ypX5X0IjVNORQev9UuiKgAEFAeYcCgi0LB1DuasRVCf+yQeHa7xUGjtGS4PNWyK1jyyvJGYjV9XI1vUfnR5iKzKQVkBafqcCsW65H4D7m9cSVfU9P23XaHmwKAqYHG0LOyis/NT4cI5lRu7NhyTb6k3qex5jOGlIWrGGuA2Aer8jsMZ4msZDYlRksBUQD4TJpeoCxYikxuPx9ylE8cGle2qMHzdayM31rZ6AJSqZEMGFlWPIOsvTyBtO0yYFF+glP/cw1FUxDYTeBynEyjIH0PpMGwLY8rU4EZlQI4pU0aKEsziZt6AkkkGE7R3KMTWiOcqdprNp41RoW1Bqjrkf/j0iIzsvZv0aol0hfcfxg3jKnGagVZfmX9K3UQexDgIe5n/1P/dM91Zh3uMkrRMt2WYExd6nI5B3YzxTj1xzla7fYFixl6BudS9lhkmvg=
distributions: sdist
distributions: sdist bdist_wheel
on:
tags: true
all_branches: true
python: 3.6

python:
- 3.6

before_install:
- sudo apt-get update
- sudo apt-get install -y libsnappy-dev
addons:
apt:
sources:
- libsnappy-dev

install:
- pip install --upgrade pip setuptools wheel
- pip install flake8
- pip install "pytest<3.3.0" pytest-cov pytest-catchlog docker-py
- pip install codecov
- pip install cython
- pip install python-snappy
- pip install lz4 xxhash
- pip install pathlib
- pip install -vv -Ue .
- pip install -r requirements-ci.txt
- pip install -vv -Ue . # We set -vv to see compiler exceptions/warnings

after_success:
- codecov

cache: pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cov cover coverage: flake
py.test -s --cov aiokafka --cov-report html --docker-image $(DOCKER_IMAGE) -Wdefault $(FLAGS) tests
@echo "open file://`pwd`/htmlcov/index.html"

ci-test-unit:
ci-test-unit: flake
py.test -s --cov aiokafka --cov-report html -Wdefault $(FLAGS) tests

ci-test-all:
Expand Down
9 changes: 9 additions & 0 deletions requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
flake8==3.5.0
pytest==3.7.2
pytest-cov==2.5.1
docker-py==1.10.6
coveralls==1.2.0
Sphinx==1.7.0
lz4==2.1.0
xxhash==1.0.1
python-snappy==0.5.1
16 changes: 2 additions & 14 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
flake8==3.5.0
pytest==3.7.2
pytest-cov==2.5.1
pytest-catchlog==1.2.2
docker-py==1.10.6
coveralls==1.2.0
Sphinx==1.7.0
lz4==2.1.0
xxhash==1.0.1
python-snappy==0.5.1

sphinxcontrib-asyncio==0.2.0
sphinxcontrib-spelling==4.1.0
alabaster==0.7.11
-r requirements-ci.txt
-r requirements-docs.txt

diff-cover==1.0.3
setuptools>=34.4.0
Expand Down

0 comments on commit 9d708b3

Please sign in to comment.