From dc7b60b74470676f5334a6f688cc41ee5e1ada2e Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Thu, 14 May 2020 11:59:56 -0500 Subject: [PATCH 1/3] Add .gitlab-ci.yml --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8b1e2dd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: "python:3.7" + +before_script: + - python --version + - pip install flake8 + - pip install pylint + +stages: + - lint + +flake8: + tags: + - lint + stage: lint + script: + - flake8 --exclude=tests.py --max-line-length=120 *.py app + +pylint: + tags: + - lint + stage: lint + script: + - pylint --ignore=tests.py --max-line-length=120 *.py app + -- GitLab From 87afd04f6b1b3b23287a86e4b93e5d8967cf398e Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Thu, 14 May 2020 14:19:19 -0500 Subject: [PATCH 2/3] Merge into one job to save some time --- .gitlab-ci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b1e2dd..4b1cc07 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,17 +8,10 @@ before_script: stages: - lint -flake8: +linting: tags: - lint stage: lint script: - flake8 --exclude=tests.py --max-line-length=120 *.py app - -pylint: - tags: - - lint - stage: lint - script: - pylint --ignore=tests.py --max-line-length=120 *.py app - -- GitLab From ac1527dee4f648f800338c6fe039ed36936d410f Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Mon, 18 May 2020 14:08:16 -0500 Subject: [PATCH 3/3] Remove flake8 --- .gitlab-ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4b1cc07..d93cd99 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,6 @@ image: "python:3.7" before_script: - python --version - - pip install flake8 - pip install pylint stages: @@ -13,5 +12,4 @@ linting: - lint stage: lint script: - - flake8 --exclude=tests.py --max-line-length=120 *.py app - pylint --ignore=tests.py --max-line-length=120 *.py app -- GitLab