diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000000..0e91d7bfb6 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,53 @@ +name: codechecker +base: core18 +version: '6.16.0' +summary: CodeChecker is an analyzer tooling, defect database and viewer extension +description: | + CodeChecker is an analyzer tooling, defect database and viewer extension. + You can store and visualize thousands of analysis reports of many analyzers + like Clang Static Analyzer (C/C++), Clang Tidy (C/C++), Facebook Infer + (C/C++, Java), Clang Sanitizers (C/C++), Spotbugs (Java), Pylint (Python), + Eslint (Javascript). + +grade: stable +confinement: classic + +apps: + codechecker: + command: CodeChecker/bin/CodeChecker + environment: + PATH: ${SNAP}/usr/bin:${PATH} + PYTHONPATH: ${SNAP}/usr/lib/python3.6 + report-converter: + command: CodeChecker/bin/report-converter + post-process-stats: + command: CodeChecker/bin/post-process-stats + merge-clang-extdef-mappings: + command: CodeChecker/bin/merge-clang-extdef-mappings + tu-collector: + command: CodeChecker/bin/tu_collector + gerrit-changed-files-to-skipfile: + command: python3 ${SNAP}/CodeChecker/bin/gerrit_changed_files_to_skipfile.py + +parts: + codechecker: + plugin: python + python-version: python3 + source: https://github.com/Ericsson/codechecker/archive/v6.16.0.tar.gz + requirements: + - analyzer/requirements.txt + - web/requirements.txt + build-packages: + - curl + - gcc-multilib + - python3-dev + - python3-setuptools + - python # Needed to compile fibers npm package. + build-snaps: + - node/11/stable + override-build: | + snapcraftctl build + npm config set scripts-prepend-node-path true + npm config set unsafe-perm true + make package + cp -r $SNAPCRAFT_PART_BUILD/build/CodeChecker $SNAPCRAFT_PART_INSTALL