From cec493d95aa0b3a8c0b32bc01f436b845b9758d1 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 24 Jul 2018 10:52:16 +0200 Subject: [PATCH 1/2] Travis CI: Add flake8 jobs for Python 2 and Python 3 --- .travis.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 11cb2a2f12758b..ff9781d259c50b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ compiler: sudo: false cache: ccache matrix: + allow_failures: + - python: 3.7 include: - os: linux node_js: "latest" @@ -17,7 +19,25 @@ matrix: - make -j2 V= script: - make -j2 test-ci + - os: linux + python: 2.7 + install: + - pip install flake8 + script: + - flake8 --version + - EXCLUDE=./deps/npm/node_modules/node-gyp,./deps/v8,./src/noperfctr_macros.py,./src/notrace_macros.py,./tools + - flake8 . --count --exclude=${EXCLUDE} --select=E901,E999,F821,F822,F823 --show-source --statistics + - os: linux + python: 3.7 + dist: xenial # required for Python 3.7 + sudo: true # required for Python 3.7 + install: + - pip install flake8 + script: + - flake8 --version + - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics + before_install: - export CXX="ccache clang++ -Qunused-arguments" - export CC="ccache clang -Qunused-arguments -Wno-unknown-warning-option" - - export JOBS=2 + - export JOBS=4 From 68a313509a192fb3cc42b8ba6c725ffa3c05b8d7 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 24 Jul 2018 11:11:13 +0200 Subject: [PATCH 2/2] language: python --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index ff9781d259c50b..7b7bbcdf6aaa2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ matrix: script: - make -j2 test-ci - os: linux + language: python python: 2.7 install: - pip install flake8 @@ -28,6 +29,7 @@ matrix: - EXCLUDE=./deps/npm/node_modules/node-gyp,./deps/v8,./src/noperfctr_macros.py,./src/notrace_macros.py,./tools - flake8 . --count --exclude=${EXCLUDE} --select=E901,E999,F821,F822,F823 --show-source --statistics - os: linux + language: python python: 3.7 dist: xenial # required for Python 3.7 sudo: true # required for Python 3.7