Skip to content

Commit

Permalink
Test travis with Tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Brognoli committed Feb 15, 2019
1 parent 6978116 commit 104f8a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
language: python
# Existing Python versions
python:
- 3.4
- 3.5
- 3.6
# python:
# - 3.4
# - 3.5
# - 3.6
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
- env: TOX_ENV=py37-django-21-es6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.7
dist: xenial
sudo: true
- env: TOX_ENV=py36-django-110-es2 ES_APT_URL=https://packages.elastic.co/elasticsearch/2.x/debian
python: 3.6

before_install:
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elastic.list
- echo "deb $ES_APT_URL stable main" | sudo tee -a /etc/apt/sources.list.d/elastic.list
- sudo apt-get update && sudo apt-get install elasticsearch -y
- sudo service elasticsearch start

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r requirements.txt

coverage==4.0.3
elasticsearch-dsl==2.2.0
elasticsearch-dsl==6.3.1
flake8==2.5.4
nose==1.3.7
Sphinx==1.4.1
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ply==3.11
tox==3.7.0

0 comments on commit 104f8a7

Please sign in to comment.