aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2020-09-05 22:03:37 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-09-05 22:03:37 +0200
commit437ee022276589a3355f03c92ddcb75a738c88c2 (patch)
treeaa2cb8bbe7ec57ecfb72595fae4f02d5fba8d586
parenta7f088767cb5260f23ef95b7485b5ea09e1112ea (diff)
downloadbuildroot-437ee022276589a3355f03c92ddcb75a738c88c2.tar.gz
buildroot-437ee022276589a3355f03c92ddcb75a738c88c2.tar.bz2
.gitlab-ci.yml: use python3 for flake8 run
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--.gitlab-ci.yml.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a06fa12cca..c838ff3c26 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,7 @@ check-flake8:
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
- sort -u files.txt | tee files.processed
script:
- - python -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
+ - python3 -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
after_script:
- wc -l files.processed
diff --git a/.gitlab-ci.yml.in b/.gitlab-ci.yml.in
index 021dacbf9b..08a714f320 100644
--- a/.gitlab-ci.yml.in
+++ b/.gitlab-ci.yml.in
@@ -28,7 +28,7 @@ check-flake8:
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
- sort -u files.txt | tee files.processed
script:
- - python -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
+ - python3 -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
after_script:
- wc -l files.processed