Skip to content

Commit 8340a94

Browse files
Barthelemyktf
authored andcommitted
Addition of codingguidelines recipe and use in qualitycontrol (#1362)
1 parent 9ac22cb commit 8340a94

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

codingguidelines.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package: CodingGuidelines
2+
version: "%(tag_basename)s"
3+
tag: master
4+
source: https://github.com/AliceO2Group/CodingGuidelines
5+
---
6+
#!/bin/sh
7+
8+
# Simply install the .clang-format for the other packages to find it
9+
rsync -a --ignore-existing $SOURCEDIR/.clang-format $INSTALLROOT
10+
11+
#ModuleFile
12+
mkdir -p etc/modulefiles
13+
cat > etc/modulefiles/$PKGNAME <<EoF
14+
#%Module1.0
15+
proc ModulesHelp { } {
16+
global version
17+
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
18+
}
19+
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
20+
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
21+
# Our environment
22+
EoF
23+
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles

qualitycontrol.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ requires:
1313
- arrow
1414
build_requires:
1515
- CMake
16+
- CodingGuidelines
1617
source: https://github.com/AliceO2Group/QualityControl
1718
incremental_recipe: |
1819
make ${JOBS:+-j$JOBS} install
@@ -24,6 +25,9 @@ case $ARCHITECTURE in
2425
osx*) [[ ! $BOOST_ROOT ]] && BOOST_ROOT=$(brew --prefix boost);;
2526
esac
2627

28+
# Copy the clang-format from CodingGuidelines
29+
rsync -a --ignore-existing $CODINGGUIDELINES_ROOT/.clang-format $SOURCEDIR
30+
2731
cmake $SOURCEDIR \
2832
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
2933
-DBOOST_ROOT=$BOOST_ROOT \

0 commit comments

Comments
 (0)