forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[snap] Add skeleton to build a snap package
- Loading branch information
1 parent
4375532
commit 4ab4719
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |