Skip to content

Commit 9df6cd1

Browse files
author
alrex
authored
Adding travis config (#25)
* adding travis config
1 parent 5aee3ce commit 9df6cd1

File tree

2 files changed

+60
-6
lines changed

2 files changed

+60
-6
lines changed

Diff for: .travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
dist: xenial
2+
3+
language: python
4+
5+
cache: pip
6+
7+
python:
8+
- '3.4'
9+
- '3.5'
10+
- '3.6'
11+
- '3.7'
12+
- '3.8'
13+
- 'pypy3'
14+
15+
services:
16+
- docker
17+
18+
install:
19+
- pip install tox-travis
20+
21+
script:
22+
- tox
23+
24+
after_success:
25+
- pip install codecov
26+
- codecov -v

Diff for: instrumentors/tox.ini

+34-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ envlist =
55
; Environments are organized by individual package, allowing
66
; for specifying supported Python versions per package.
77

8-
py3{4,5,6,7,8}-test-flask
9-
pypy3-test-flask
8+
; py3{4,5,6,7,8}-test-flask
9+
; pypy3-test-flask
1010

11-
py3{4,5,6,7,8}-test-django
12-
pypy3-test-django
11+
; py3{4,5,6,7,8}-test-django
12+
; pypy3-test-django
13+
lint
14+
15+
[travis]
16+
python =
17+
3.8: lint
1318

1419
[testenv]
1520
deps =
@@ -28,8 +33,6 @@ commands_pre =
2833
; Install without -e to test the actual installation
2934
python -m pip install -U pip setuptools wheel
3035
; test: pip install {toxinidir}/flask
31-
test: pip install {toxinidir}/utils/opentelemetry-auto-instrumentation
32-
test: pip install {toxinidir}/utils/opentelemetry-ext-testutil
3336

3437
flask: pip install {toxinidir}/flask
3538
flask: pip install {toxinidir}/flask[test]
@@ -39,3 +42,28 @@ commands_pre =
3942

4043
commands =
4144
test: pytest {posargs}
45+
46+
[testenv:lint]
47+
basepython: python3.8
48+
#recreate = True
49+
deps =
50+
-c dev-requirements.txt
51+
pylint
52+
flake8
53+
isort
54+
black
55+
psutil
56+
readme_renderer
57+
58+
; commands_pre =
59+
; python scripts/eachdist.py install --editable
60+
; TODO: replace this with eachdist script
61+
commands =
62+
black --check --diff .
63+
; TODO: enable this once we have instrumentors
64+
; pylint django/src \
65+
; flask/src \
66+
; redis/src \
67+
; sqlalchemy/src
68+
flake8 .
69+
isort --check-only --diff --recursive .

0 commit comments

Comments
 (0)