Skip to content
Snippets Groups Projects
Unverified Commit 5ead73e8 authored by Daniele Debernardi's avatar Daniele Debernardi Committed by Oliver Smith
Browse files

CI: use pmbootstrap lint for checking packages (MR 1132)

parent 233ec0d2
Branches
No related tags found
No related merge requests found
Pipeline #193532 passed
......@@ -85,9 +85,10 @@ aports-static:
aport-lint:
stage: first
before_script:
- apk -q add git atools python3
- wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh
script:
- .gitlab-ci/apkbuild-linting.py
- su pmos -c ".gitlab-ci/apkbuild-linting.py"
only:
- merge_requests
allow_failure: true
......
......@@ -3,7 +3,6 @@
import common
import os.path
import subprocess
import sys
if __name__ == "__main__":
......@@ -20,9 +19,10 @@ if __name__ == "__main__":
print(f"NOTE: Skipping linting of {apkbuild}")
continue
result = subprocess.run(["apkbuild-lint", apkbuild], capture_output=True)
if len(result.stdout) > 0:
issues.append([apkbuild, result.stdout.decode("utf-8")])
package = os.path.basename(os.path.dirname(apkbuild))
result = common.run_pmbootstrap(["-q", "lint", package], output_return=True)
if len(result) > 0:
issues.append([apkbuild, result])
if len(issues) > 0:
print("Linting issues found:")
......
  • Administrator @root

    mentioned in commit 284b02c3

    By Daniele Debernardi on 2020-06-16T14:02:13

    · Imported

    mentioned in commit 284b02c3

    By Daniele Debernardi on 2020-06-16T14:02:13

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment