Skip to content

Commit

Permalink
Test dev package on Python 3 (#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Jul 28, 2018
1 parent 8f2e0d7 commit 4e6f576
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
include:
- stage: test_changed
script:
- ddev dep verify
- ddev manifest verify --include-extras
- ddev test
- ddev test --bench || true
- ddev dep verify
- ddev manifest verify --include-extras
- ddev test
- ddev test --bench || true
- stage: test
env: CHECK=datadog_checks_base
script:
Expand All @@ -51,7 +51,7 @@ jobs:
- travis_retry ddev test ${CHECK}
- ddev test ${CHECK} --bench || true
- stage: test
env: CHECK=datadog_checks_dev
env: CHECK=datadog_checks_dev PYTHON3=true
- stage: test
env: CHECK=active_directory
- stage: test
Expand Down Expand Up @@ -193,6 +193,7 @@ jobs:
before_install:
- chmod +x .travis/prepare.sh
- .travis/prepare.sh
- PATH="$PATH:$(pyenv root)/versions/3.6/bin"
install:
- pip install -U pip setuptools
- pip install ./datadog_checks_dev[cli]
Expand Down
9 changes: 3 additions & 6 deletions datadog_checks_dev/tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[tox]
minversion = 2.0
skip_missing_interpreters = true
basepython = py27
envlist =
dev
{py27,py36}-dev
flake8

[testenv]
Expand All @@ -11,14 +12,10 @@ platform = linux|darwin|win32
deps =
../datadog_checks_base
-r../datadog_checks_base/requirements.in
-rrequirements-dev.txt
passenv =
DOCKER*
COMPOSE*

[testenv:dev]
deps =
{[testenv]deps}
-rrequirements-dev.txt
commands =
pytest -v

Expand Down

0 comments on commit 4e6f576

Please sign in to comment.