10000 Upgrade to Circle 2 (#19) · python-lsp/python-lsp-jsonrpc@3610ed2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3610ed2

Browse files
authored
Upgrade to Circle 2 (#19)
1 parent 7021d84 commit 3610ed2

File tree

7 files changed

+85
-61
lines changed

7 files changed

+85
-61
lines changed

.circleci/config.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: 2
2+
3+
jobs:
4+
python2-test:
5+
docker:
6+
- image: "python:2.7-stretch"
7+
steps:
8+
- checkout
9+
- run: pip install -e .[test]
10+
- run: py.test test/
11+
- run: pylint pyls_jsonrpc test
12+
- run: pycodestyle pyls_jsonrpc test
13+
- run: pyflakes pyls_jsonrpc test
14+
15+
python3-test:
16+
docker:
17+
- image: "python:3.5-stretch"
18+
steps:
19+
- checkout
20+
- run: pip install -e .[test]
21+
- run: py.test test/
22+
23+
lint:
24+
docker:
25+
- image: "python:2.7-stretch"
26+
steps:
27+
- checkout
28+
- run: pip install -e .[all] .[test]
29+
- run: pylint pyls_jsonrpc test
30+
- run: pycodestyle pyls_jsonrpc test
31+
- run: pyflakes pyls_jsonrpc test
32+
33+
publish:
34+
docker:
35+
- image: "python:3.5-stretch"
36+
steps:
37+
- checkout
38+
- run: ./scripts/circle/pypi.sh
39+
40+
41+
workflows:
42+
version: 2
43+
build:
44+
jobs:
45+
- python2-test:
46+
filters: { tags: { only: /.*/ } }
47+
- python3-test:
48+
filters: { tags: { only: /.*/ } }
49+
- publish:
50+
filters:
51+
tags:
52+
only: /[0-9]+(\.[0-9]+)+((-(beta|rc)[0-9]{1,2})(\.[0-9])?)?/
53+
branches:
54+
ignore: /.*/
55+
requires:
56+
- python2-test
57+
- python3-test

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include README.rst
22
include versioneer.py
33
include pyls_jsonrpc/_version.py
44
include LICENSE
5+
include .pylintrc
56
recursive-include test *.py

appveyor.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
environment:
22
matrix:
3-
- TOXENV: py27
4-
- TOXENV: py34
5-
- TOXENV: lint
3+
- PYTHON: "C:\\Python27"
4+
PYTHON_VERSION: "2.7.15"
5+
PYTHON_ARCH: "64"
6+
7+
- PYTHON: "C:\\Python35"
8+
PYTHON_VERSION: "3.5.7"
9+
PYTHON_ARCH: "64"
610

711
matrix:
812
fast_finish: true
913

10-
install:
11-
- C:\Python27\python -m pip install --pre -U tox
14+
init:
15+
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
1216

13-
build: false # Not a C# project
17+
install:
18+
- "%PYTHON%/python.exe -m pip install --upgrade pip setuptools"
19+
- "%PYTHON%/python.exe -m pip install .[test]"
1420

1521
test_script:
16-
- C:\Python27\scripts\tox
22+
- "%PYTHON%/Scripts/pytest.exe test/"
23+
24+
build: false # Not a C# project
1725

1826
cache:
1927
- '%APPDATA%\pip\Cache'

circle.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

setup.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,14 @@ versionfile_source = pyls_jsonrpc/_version.py
55
versionfile_build = pyls_jsonrpc/_version.py
66
tag_prefix =
77
parentdir_prefix =
8+
9+
[pycodestyle]
10+
ignore = E226, E722, W504
11+
max-line-length = 120
12+
exclude = test/plugins/.ropeproject,test/.ropeproject
13+
14+
[tool:pytest]
15+
testpaths = test
16+
addopts =
17+
--cov-report html --cov-report term --junitxml=pytest.xml
18+
--cov pyls --cov test

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
# for example:
4242
# $ pip install -e .[test]
4343
extras_require={
44-
'test': ['tox', 'versioneer', 'pytest', 'mock', 'pytest-cov', 'coverage'],
44+
'test': ['versioneer', 'pylint', 'pycodestyle', 'pyflakes', 'pytest', 'mock', 'pytest-cov', 'coverage'],
4545
},
4646
)

tox.ini

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0