Skip to content

Commit

Permalink
Travis CI: Simplify the testing (TheAlgorithms#887)
Browse files Browse the repository at this point in the history
* 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).
  • Loading branch information
cclauss authored and AnupKumarPanwar committed Jul 3, 2019
1 parent 65a12fa commit 4fb4cb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
12 changes: 0 additions & 12 deletions .lgtm.yml

This file was deleted.

29 changes: 4 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
language: python
cache: pip
python:
- 2.7
- 3.6
#- nightly
#- pypy
#- pypy3
matrix:
allow_failures:
- python: nightly
- python: pypy
- python: pypy3
install:
#- pip install -r requirements.txt
- pip install flake8 # pytest # add another testing frameworks later
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- true # pytest --capture=sys # add other tests here
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
dist: xenial # required for Python >= 3.7
python: 3.7
install: pip install flake8
script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

0 comments on commit 4fb4cb4

Please sign in to comment.