Skip to content

Commit

Permalink
[snap] Add skeleton to build a snap package
Browse files Browse the repository at this point in the history
  • Loading branch information
csordasmarton committed Feb 15, 2021
1 parent 4375532 commit 4ab4719
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions snap/snapcraft.yaml
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

0 comments on commit 4ab4719

Please sign in to comment.