CI: Updated config files based on latest TAOS-CI version
authorGeunsik Lim <geunsik.lim@samsung.com>
Thu, 13 Sep 2018 09:41:24 +0000 (18:41 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Thu, 13 Sep 2018 16:27:55 +0000 (01:27 +0900)
This commit is to update the existing configuration files
based on the latest version of TAOS-CI.

**Changes proposed in this PR:**
1. Added config file for server administrator
2. Updated the existing config files TAOS-CI version 1.0.20180913.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
Documentation/ci-config/config-environment.sh
Documentation/ci-config/config-plugins-audit.sh
Documentation/ci-config/config-plugins-format.sh
Documentation/ci-config/config-server-administrator.sh [new file with mode: 0644]
Documentation/ci-config/config-webhook.json
TAOS-CI [new submodule]

index 44d992d..4cbb04a 100644 (file)
@@ -22,7 +22,7 @@
 #### Repository setting
 # Connecting to a repository using token id instead of your-gitbot-id@github.io id
 # because of two-authentification. Refer to https://github.com/settings/tokens
-TOKEN="2e44d5b23fda558807ed7a0cdd02bf**********"
+TOKEN="xxxxxxxxxxxx558807ed7a0cdd02bfd6d431d7ca"
 
 # Name of account (or orgranzation)
 GITHUB_ACCOUNT="nnsuite"
@@ -31,7 +31,7 @@ GITHUB_ACCOUNT="nnsuite"
 PRJ_REPO_UPSTREAM="nnstreamer"
 
 # CI Server webaddress. Should end with /
-CISERVER="http://www.<your-dns>.net/"
+CISERVER="http://nnsuite.mooo.com/"
 
 # Format area (pr-format)
 # Add root path of source folders
@@ -96,7 +96,7 @@ filesize_limit=5
 # 2) Ubuntu (debian/*.rule)  : If a maintainer done the pdebuild based build process, you may change builde mode from 99 to 0.
 # 3) Yocto (CMakeLists.txt)  : If a maintainer done the devtool based build process, you may change builde mode from 99 to 0.
 BUILD_MODE_TIZEN=0
-BUILD_MODE_UBUNTU=99
+BUILD_MODE_UBUNTU=0
 BUILD_MODE_YOCTO=99
 
 # Version format: Major.Minor
index b3cc956..193c1af 100644 (file)
@@ -1,8 +1,8 @@
 #!/usr/bin/env bash
 
 ##
-# @file config-plugins-audit.sh
-# @brief add plugin modules for a github repository
+# @file     config-plugins-audit.sh
+# @brief    Configuraiton file to maintain audit modules (after completing a build procedure)
 # @see      https://github.com/nnsuite/TAOS-CI
 # @author   Geunsik Lim <geunsik.lim@samsung.com>
 
@@ -10,7 +10,7 @@
 declare -i idx=-1
 
 ###### plugins-base ###############################################################################################
-echo "[MODULE] plugins-base: Plugin group that is maintained with good quality"
+echo "[MODULE] plugins-base: Plugin group is a well-maintained collection of plugin modules."
 # Please append your plugin modules here.
 
 audit_plugins[++idx]="pr-audit-build-tizen"
@@ -19,7 +19,6 @@ echo "[DEBUG] ${audit_plugins[idx]} is started."
 echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if Tizen rpm package is successfully generated."
 echo "[DEBUG] Current path: $(pwd)."
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
-# Note that do not append the below "$module_name" because build step is implemented as a built-in module partially
 
 
 audit_plugins[++idx]="pr-audit-build-ubuntu"
@@ -28,21 +27,19 @@ echo "[DEBUG] ${audit_plugins[idx]} is started."
 echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if Ubuntu deb package is successfully generated."
 echo "[DEBUG] Current path: $(pwd)."
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
-# Note that do not append the below "$module_name" because build step is implemented as a built-in module partially
 
 
-#audit_plugins[++idx]="pr-audit-build-yocto"
-#echo "[DEBUG] The default BUILD_MODE of ${audit_plugins[idx]} is declared with 99 by default in plugins-base folder."
-#echo "[DEBUG] ${audit_plugins[idx]} is started."
-#echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if YOCTO deb package is successfully generated."
-#echo "[DEBUG] Current path: $(pwd)."
-#source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
-# Note that do not append the below "$module_name" because build step is implemented as a built-in module partially
+audit_plugins[++idx]="pr-audit-build-yocto"
+echo "[DEBUG] The default BUILD_MODE of ${audit_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder."
+echo "[DEBUG] ${audit_plugins[idx]} is started."
+echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if YOCTO deb package is successfully generated."
+echo "[DEBUG] Current path: $(pwd)."
+source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
 
 
 
 ###### plugins-good ###############################################################################################
-echo "[MODULE] plugins-base: Plugin group that is maintained with good quality"
+echo "[MODULE] plugins-good: Plugin group that follow a writing rule with good quality"
 # Please append your plugin modules here.
 
 
index 06afedf..37a01b8 100644 (file)
@@ -1,8 +1,8 @@
 #!/usr/bin/env bash
 
 ##
-# @file config-plugins-format.sh
-# @brief add plugin modules for a github repository
+# @file     config-plugins-format.sh
+# @brief    Configuration file to maintain format modules (before doing a build procedure)
 # @see      https://github.com/nnsuite/TAOS-CI
 # @author   Geunsik Lim <geunsik.lim@samsung.com>
 
 declare -i idx=-1
 
 ##################################################################################################################
-echo "[MODULE] plugins-good: Plugin group that is maintained with good quality"
+echo "[MODULE] plugins-good: Plugin group that follow a writing rule with good quality"
 # Please append your plugin modules here.
 
-format_plugins[++idx]="pr-format-doxygen"
+format_plugins[++idx]="pr-format-doxygen-tag"
 echo "${format_plugins[idx]} is starting."
 echo "[MODULE] TAOS/${format_plugins[idx]}: Check a source code consists of required doxygen tags."
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-indent"
 echo "${format_plugins[idx]} is starting."
 echo "[MODULE] TAOS/${format_plugins[idx]}: Check the code formatting style with GNU indent"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
@@ -32,83 +32,96 @@ source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 #format_plugins[++idx]="pr-format-clang"
 # echo "${format_plugins[idx]} is starting."
 # echo "[MODULE] TAOS/${format_plugins[idx]}: Check the code formatting style with clang-format"
-# echo "The current path: $(pwd)."
+# echo "[DEBUG] The current path: $(pwd)."
 # echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 # source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 #format_plugins[++idx]="pr-format-exclusive-vio"
 # echo "${format_plugins[idx]} is starting."
 # echo "[MODULE] TAOS/${format_plugins[idx]}: Check issue #279. VIO commits should not touch non VIO files."
-# echo "The current path: $(pwd)."
+# echo "[DEBUG] The current path: $(pwd)."
 # echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 # source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-pylint"
 echo "${format_plugins[idx]} is starting."
 echo "[MODULE] TAOS/${format_plugins[idx]}: Check the code formatting style with pylint"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-newline"
 echo "${format_plugins[idx]} is starting."
 echo "[MODULE] TAOS/${format_plugins[idx]}: Check if there is a newline issue in text files"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-rpm-spec"
 echo "${format_plugins[idx]} is starting."
 echo "[MODULE] TAOS/${format_plugins[idx]}: Check if there is incorrect staements in *.spec file"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-file-size"
 echo "${format_plugins[idx]} is starting."
 echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-cppcheck"
 echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check dangerous coding constructs in source codes (*.c, *.cpp) with cppcheck"
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-nobody"
 echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check the commit message body"
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-timestamp"
 echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check the timestamp of the commit"
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 format_plugins[++idx]="pr-format-executable"
 echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}:  Check executable bits for .cpp, .c, .hpp, .h, .prototxt, .caffemodel, .txt., .init"
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
-format_plugins[++idx]="pr-hardcoded-path"
+format_plugins[++idx]="pr-format-hardcoded-path"
 echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check prohibited hardcoded paths (/home/* for now)"
+echo "[DEBUG] The current path: $(pwd)."
+echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
+source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
+
+format_plugins[++idx]="pr-format-misspelling"
+echo "${format_plugins[idx]} is starting."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check a misspelled statement in a document file with GNU Aspell"
+echo "[DEBUG] The current path: $(pwd)."
 echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
 source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
+format_plugins[++idx]="pr-format-doxygen-build"
+echo "${format_plugins[idx]} is starting."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check a doxygen grammar if a doxygen can normally generates source code"
+echo "[DEBUG] The current path: $(pwd)."
+echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
+source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
 
 
 ##################################################################################################################
-echo "[MODULE] plugins-staging: Plugin group that does not have evaluation and aging test enough"
+echo "[MODULE] plugins-staging: Plugin group that does not have an evaluation and aging test enough"
 # Please append your plugin modules here.
 
diff --git a/Documentation/ci-config/config-server-administrator.sh b/Documentation/ci-config/config-server-administrator.sh
new file mode 100644 (file)
index 0000000..c0f1340
--- /dev/null
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+
+##
+# @file config-server-administrator.sh
+# @brief configuration file to declare contents that a server administrator installed.
+# @see      https://github.com/nnsuite/TAOS-CI
+# @author   Geunsik Lim <geunsik.lim@samsung.com>
+#
+
+########### Caution: If you are not server administrator, do not modify this file #################
+
+# Note that administrator of a server has to specify the location of eSDK at first.
+# In order to know how to install eSDK, please read plugins-base/pr-audit-build-yocto.sh file.
+# It is environment variables that are imported from eSDK to use devtool command.
+# - YOCTO_ESDK_DIR="/var/www"
+# - YOCTO_ESDK_NAME="kairos_sdk" or YOCTO_ESDK_NAME="poky_sdk"
+# In general, root path of Yocto eSDK is declated in $YOCTO_ESDK_DIR/$YOCTO_ESDK_NAME/ folder.
+
+YOCTO_ESDK_DIR="/var/www/"
+YOCTO_ESDK_NAME=""
+
index 4444cae..3917eed 100644 (file)
@@ -1,8 +1,8 @@
 {
     "github": {
         "website": "github.com",
-        "id": "taos-ci",
-        "email": "taos-ci@github.io",
-        "secret": "********"
+        "id": "xxxxxx",
+        "email": "xxxxxx@github.io",
+        "secret": "xxxxxx"
     }
 }
diff --git a/TAOS-CI b/TAOS-CI
new file mode 160000 (submodule)
index 0000000..fc6f284
--- /dev/null
+++ b/TAOS-CI
@@ -0,0 +1 @@
+Subproject commit fc6f284a6c4e4b5ba0504aaf0dcc0393cd0dbf3c