Skip to content

Commit 4fb4cb4

Browse files
cclaussAnupKumarPanwar
authored andcommitted
Travis CI: Simplify the testing (#887)
* Travis CI: Simplify the testing * flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics * python: 3.7 * dist: xenial for python: 3.7 * Delete .lgtm.yml These changes were created to get around the fact that Travis CI was not enabled on this repo. Now that Travis is enabled, we can remove these modifications. The problems are that: 1. [LGTM does not want us running flake8 on their infrstructure](https://discuss.lgtm.com/t/can-i-get-lgtm-to-run-flake8-tests/1445/6) and 2. when we do, it [does not work as expected](https://discuss.lgtm.com/t/tests-are-not-automatically-run-when-lgtm-yml-is-modified/1446/4).
1 parent 65a12fa commit 4fb4cb4

File tree

2 files changed

+4
-37
lines changed

2 files changed

+4
-37
lines changed

Diff for: .lgtm.yml

-12
This file was deleted.

Diff for: .travis.yml

+4-25
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
language: python
2-
cache: pip
3-
python:
4-
- 2.7
5-
- 3.6
6-
#- nightly
7-
#- pypy
8-
#- pypy3
9-
matrix:
10-
allow_failures:
11-
- python: nightly
12-
- python: pypy
13-
- python: pypy3
14-
install:
15-
#- pip install -r requirements.txt
16-
- pip install flake8 # pytest # add another testing frameworks later
17-
before_script:
18-
# stop the build if there are Python syntax errors or undefined names
19-
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
20-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
21-
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
22-
script:
23-
- true # pytest --capture=sys # add other tests here
24-
notifications:
25-
on_success: change
26-
on_failure: change # `always` will be the setting once code changes slow down
2+
dist: xenial # required for Python >= 3.7
3+
python: 3.7
4+
install: pip install flake8
5+
script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

0 commit comments

Comments
 (0)