From: Geunsik Lim Date: Wed, 25 Mar 2020 01:57:23 +0000 (+0900) Subject: TAOS-CI: Updated the configuration files X-Git-Tag: accepted/tizen/unified/20200331.030822~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0fcdeaf00749ef676b740eaf29d5cf848cc1d15;p=platform%2Fupstream%2Fnnstreamer.git TAOS-CI: Updated the configuration files New version of TAOS-CI is released on Mar-24-2020. * Release note - https://github.com/nnsuite/TAOS-CI/releases/tag/v1.5.20200324 This commit is to update the existing configuration files of the nnstreamer GitHub repository. The TAOS-CI can automatically load the configuraiton files of the nnstreamer GitHub repository. Note that you do not must execute the "update/merge" action on the configuration files that include the passwords for security. **Changelog** * Updated configuration files * Updated README.md file * Removed unnecessary files (Deprecated) Signed-off-by: Geunsik Lim --- diff --git a/.TAOS-CI/README.md b/.TAOS-CI/README.md index 3ad59fc..d94548e 100644 --- a/.TAOS-CI/README.md +++ b/.TAOS-CI/README.md @@ -1,13 +1,51 @@ # How to use config files -These are TAOS-CI files for nnstreamer. +These are the TAOS-CI configuration files to support the nnstreamer repository. - http://github.com/nnsuite/TAOS-CI -## How to use +## How to use the configruation files +The section describes two steps to use the configuration files of the nnstreamer repository. -After adding TAOS-CI submodule in your project, copy and overwrite them. +#### Step 1 +First of all, you must write for passwords carefully as follows. +!!!SECURITY!!! NEVER REVEAL THE BELOW PASSWORDS. ```bash -$ yes | cp -rf $PWD/.TAOS-CI/taos/* $PWD/TAOS-CI/ci/taos/ +$ vi ./config/config-environment.sh +TOKEN="xxxxxxxxxxxxxxxxxxxxx" <---- 1/4: Here!!! +_cov_token="xxxxxxxxxxxxxxxx" <---- 2/4: Here!!! + +$ vi ./config-webhookk.json +{ + "github": { + "website": "github.com", + "id": "taos-ci", + "email": "taos-ci@github.io", + "secret": "xxxxxxx" <---- 3/4: Here!!! + }, + "broken_arrow": { + "id": "admin", + "pass": "xxxxxxx", <---- 4/4: Here!!! + "ip": " " + } +} +``` + +#### Step 2 +After adding TAOS-CI submodule in your GitHub project folder, copy and overwrite them. + +```bash +$ cp -rf ./conf/* {REPO_DIR}/TAOS-CI/ci/taos/conf/ ``` +Or you may just link the configuration files with the `ln` command to maintain changes effectively. +```bash +$ cd {REPO_DIR} +$ ln -s .TAOS-CI/conf/config-environment.sh ./TAOS-CI/ci/taos/conf/config-environment.sh +$ ln -s .TAOS-CI/conf/config-plugins-postbuild.sh ./TAOS-CI/ci/taos/conf/config-plugins-postbuild.sh +$ ln -s .TAOS-CI/conf/config-plugins-prebuild.sh ./TAOS-CI/ci/taos/conf/config-plugins-prebuild.sh +$ ln -s .TAOS-CI/conf/config-server-administrator.sh ./TAOS-CI/ci/taos/conf/config-server-administrator.sh +$ ln -s .TAOS-CI/conf/config-webhook.json ./TAOS-CI/ci/taos/conf/config-webhook.json +$ ln -s .TAOS-CI/conf/prohibited_words.txt ./TAOS-CI/ci/taos/conf/prohibited_words.txt + +```bash diff --git a/.TAOS-CI/config/config-environment.sh b/.TAOS-CI/config/config-environment.sh new file mode 100644 index 0000000..fa3109f --- /dev/null +++ b/.TAOS-CI/config/config-environment.sh @@ -0,0 +1,168 @@ +#!/usr/bin/env bash + +# Do not append a license statement in the configuration file +# for a differnet license-based repository. + +## +# @file config-environment.sh +# @brief The configuration file to maintain all scripts +# @see https://github.com/nnsuite/TAOS-CI +# @author Geunsik Lim +# +# This script is to maintain consistently all scripts files. +# +# If you have to run this CI script at the below environment, Please change +# the contents appropriately. +# a. In case that you want to apply this CI script to another repository +# b. In case that you have to install CI in a new CI server for more high-performance +# c. In case that you need to create new project +# + +################# Modify the below statements for your server ####################### + + +#### Repository setting + +# Add TOKEN ID to access your GitHub repository using WebHook APIs +# Refer to https://github.com/settings/tokens +# WARNING: Do NOT OPEN THE TOKEN ID OF GITHUB TO AVOID A SECURITY FLAW. +TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + +# Write an account name (or organization name) of the '{master|upstream}' branch +# e.g., https://github-website/{account_name}/{project_name}/ +GITHUB_ACCOUNT="nnsuite" + +# Write a project name of a github website of the '{master|upstream}' branch +# e.g., https://github-website/{account_name}/{project_name}/ +PRJ_REPO_UPSTREAM="nnstreamer" + +# Specify the web address of the CI server. Should end with / +CISERVER="http://nnsuite.mooo.com/" + +# Prebuild group area (pr-prebuild) to inventigate source code +# Add root path of source folders. For example, specify a path of source code: +# 1) to check prohibited hardcoded paths (e.g., /home/* for now) +# 2) to check code formatting sytele with clang-format +SRC_PATH="./gst/" + +# If you want to use another name instead of the default TAOS name, Write the name that you +# want to use for your GitHub repository. For example, "CHATBOT", "REVIEWBOT". +BOT_NAME="TAOS" + +# Skip Paths: prebuild group (pr-prebuild) +# declare a folder name to skip the file size and newline inspection. +# (e.g., /temproal-bin/) +SKIP_CI_PATHS_FORMAT="temporal-bin" + +# Skip Paths: postbuild group (pr-postbuild) +# Skip build-checker / unit-test checker if all changes are limited to: +# The path starts without / and it denotes the full paths in the git repo. (regex) +SKIP_CI_PATHS_AUDIT="^ci/.*|^Documentation/.*|^\.github/.*|^obsolete/.*|^README\.md|^external/.*|^temporal-bin/.*|^\.TAOS-CI/.*" + +# Define the number of CPUs to build source codes in parallel +# We recommend that you define appropriate # of CPUs that does not result in +# Out-Of-Memory and Too mnay task migration among the CPUs. +CPU_NUM=6 + +#### Automatic PR commenter: enabling(1), disabling(0) + +# Inform a PR submitter of a rule to pass the CI process +pr_comment_notice=1 + +# Inform all developers of their activity whenever PR submitter resubmit their PR after applying comments of reviews +pr_comment_pr_updated=0 + +# Inform a PR submitter that they do not have to merge their own PR directly. +pr_comment_self_merge=0 + +# infrom a PR submitter of how to submit a PR that include lots of commits. +pr_comment_many_commit=0 + +# Inform a PR submitter of the webpage address in order that they can monitor the current status of their PR. +pr_comment_pr_monitor=0 + +#### Build test: Write a build type to test ex) "x86_64 i586 armv7l aarch64" +# Currently, this variable is declared to hande the "gbs build" command on Tizen. +pr_build_arch_type="x86_64 i586 armv7l aarch64" + +### Check level of doxygen tag: +# Basic = 0 (@file + @brief) +# Advanced = 1 (Basic + "@author, @bug and functions with ctags") +pr_doxygen_check_level=1 + +### Check level of CPPCheck for a static analysis of C/C++ source code: +# CPPCheck Level 0: The check level is 'err'. +# CPPCheck Level 1: 'err' + 'warning,performance,unusedFunction' +pr_cppcheck_check_level=0 + + +#### File size limit +# Unit of the file size is MB. +filesize_limit=5 + +#### Dependency policy between prebuild and postbuild group +# No dependency = 0 +# Dependency = 1 (based on the order of definition) +# If dependency, PR group running order follows FCFS ordering +dep_policy_between_groups=0 + + +#### Build mode of software platform + +# BUILD_MODE_***=0 : execute a build process without a debug file. +# BUILD_MODE_***=1 : execute a build process with a debug file. +# BUILD_MODE_***=99 : skip a build process (by default) +# +# Note: if a package builder is not normally executed to generate package file, +# Please declare `BUILD_MODE_***=99` untile the issue will be fixed. +# 1) Tizen (packaging/*.spec): If a maintainer done the 'gbs' based build process, +# you may change builde mode among 0, 1, and 99. +# 2) Ubuntu (debian/*.rule) : If a maintainer done the 'pdebuild' based build process, +# you may change builde mode among 0, 1, and 99. +# 3) Yocto (CMakeLists.txt) : If a maintainer done the 'devtool' based build process, +# you may change builde mode among 0, 1, and 99. +# 4) Android (jni/Android.mk) : If a maintainer done the 'ndk-build' based build process, +# you may change builde mode among 0, 1, and 99. +BUILD_MODE_TIZEN=0 +BUILD_MODE_UBUNTU=0 +BUILD_MODE_YOCTO=99 +BUILD_MODE_ANDROID=0 + +# Tizen: If each git repository must be defined by a different profile (e.g., ~/.gbs.conf), +# The name of TIZEN_GBS_PROFILE can be given without the "profile." prefix as follows. +# For example, [profile.tizen40_mobile] has to be declared with TIZEN_GBS_PROFILE="tizen40_mobile". +TIZEN_GBS_PROFILE="" + +# Pull Request Scheduler: The number of jobs on Run-Queue to process PRs +RUN_QUEUE_PR_JOBS=8 + +# Version format: Major.Minor.DATE +VERSION="1.5.20200324" + +#### Location of the GitHub repository +# We assume that the default folder of the www-data (user-id of Apache webserver) is "/var/www/html/" folder. + +# Reference repository to speed up the exectuion time of the "git clone" command +REFERENCE_REPOSITORY="/var/www/html/$PRJ_REPO_UPSTREAM/" + +# Specify RPM repo cache for accerating the GBS build speed of Tizen platform +REPOCACHE="/var/www/html/$PRJ_REPO_UPSTREAM/repo_cache/" + +# GitHub repostiroy a web address +REPOSITORY_WEB="https://github.com/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM" +REPOSITORY_GIT="https://github.com/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM.git" + +# Specify GitHub webhook API address +# a. Enterprise Edition - "https://github.{YOUR_COMPANY_DNS}/api/v3/repos/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM" +# b. Community Edition- "https://api.github.com/repos/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM" +GITHUB_WEBHOOK_API="https://api.github.com/repos/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM" + +# Coverity module, the configuration variables for the coverity module +# https://scan.coverity.com/dashboard +# If you want to skip the build procedure, please specify a "none" value in the '_cov_build_type'. +# WARNING: Do NOT OPEN THE TOKEN ID of COVERITY TO AVOID A SECURITY FLAW. +_cov_build_type="meson" +_cov_email="taos-ci@github.io" +_cov_token="xxxxxxxxxxxxxxxxxxxxxx" +_cov_yellow_card=10 +_cov_red_card=50 diff --git a/.TAOS-CI/config/config-plugins-postbuild.sh b/.TAOS-CI/config/config-plugins-postbuild.sh new file mode 100644 index 0000000..26f353f --- /dev/null +++ b/.TAOS-CI/config/config-plugins-postbuild.sh @@ -0,0 +1,72 @@ +#!/usr/bin/env bash + +# Do not append a license statement in the configuration file for a differnet license-based repository. + +## +# @file config-plugins-postbuild.sh +# @brief Configuraiton file to maintain postbuild modules (after completing a build procedure) +# @see https://github.com/nnsuite/TAOS-CI +# @author Geunsik Lim + +##### Set environment for plug-in check modules of the postbuild group +declare -i idx=-1 + +###### plugins-base ############################################################################################### +echo "[MODULE] plugins-base: Plugin group is a well-maintained collection of plugin modules." +# Please append your plugin modules here. + +postbuild_plugins[++idx]="pr-postbuild-build-tizen" +echo "[DEBUG] The default BUILD_MODE of ${postbuild_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder." +echo "[DEBUG] ${postbuild_plugins[idx]} is started." +echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check if Tizen rpm package is successfully generated." +echo "[DEBUG] Current path: $(pwd)." +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${postbuild_plugins[idx]}.sh + + +postbuild_plugins[++idx]="pr-postbuild-build-ubuntu" +echo "[DEBUG] The default BUILD_MODE of ${postbuild_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder." +echo "[DEBUG] ${postbuild_plugins[idx]} is started." +echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check if Ubuntu deb package is successfully generated." +echo "[DEBUG] Current path: $(pwd)." +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${postbuild_plugins[idx]}.sh + + +postbuild_plugins[++idx]="pr-postbuild-build-yocto" +echo "[DEBUG] The default BUILD_MODE of ${postbuild_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder." +echo "[DEBUG] ${postbuild_plugins[idx]} is started." +echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check if YOCTO deb package is successfully generated." +echo "[DEBUG] Current path: $(pwd)." +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${postbuild_plugins[idx]}.sh + + +postbuild_plugins[++idx]="pr-postbuild-build-android" +echo "[DEBUG] The default BUILD_MODE of ${postbuild_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder." +echo "[DEBUG] ${postbuild_plugins[idx]} is started." +echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check if Android package is successfully generated." +echo "[DEBUG] Current path: $(pwd)." +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${postbuild_plugins[idx]}.sh + +###### plugins-good ############################################################################################### +echo "[MODULE] plugins-good: Plugin group that follow Apache license with good quality" +# Please append your plugin modules here. + + + +###### plugins-staging ################################################################################################ +echo "[MODULE] plugins-staging: Plugin group that does not have evaluation and aging test enough" +# Please append your plugin modules here. + +# postbuild_plugins[++idx]="pr-postbuild-resource" +# echo "[DEBUG] ${postbuild_plugins[idx]} is started." +# echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check if there are not-installed resource files." +# echo "[DEBUG] Current path: $(pwd)." +# source ${REFERENCE_REPOSITORY}/ci/taos/plugins-staging/${postbuild_plugins[idx]}.sh + + +postbuild_plugins[++idx]="pr-postbuild-nnstreamer-ubuntu-apptest" +echo "[DEBUG] ${postbuild_plugins[idx]} is started." +echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check nnstreamer sample app" +echo "[DEBUG] Current path: $(pwd)." +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-staging/${postbuild_plugins[idx]}.sh + + diff --git a/.TAOS-CI/config/config-plugins-prebuild.sh b/.TAOS-CI/config/config-plugins-prebuild.sh new file mode 100644 index 0000000..c9dde44 --- /dev/null +++ b/.TAOS-CI/config/config-plugins-prebuild.sh @@ -0,0 +1,167 @@ +#!/usr/bin/env bash + +# Do not append a license statement in the configuration file for a different license-based repository. + +## +# @file config-plugins-prebuild.sh +# @brief Configuration file to maintain modules of prebuild group (before doing a build procedure) +# @see https://github.com/nnsuite/TAOS-CI +# @author Geunsik Lim + + +##### Set environment for plugin modules of prebuild group +declare -i idx=-1 + +################################################################################################################## +echo "[MODULE] plugins-good: Plugin group that follow Apache license with good quality" +# Please append your plugin modules here. + +prebuild_plugins[++idx]="pr-prebuild-doxygen-tag" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check a source code consists of required doxygen tags." +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-indent" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the code formatting style with GNU indent" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + + +#prebuild_plugins[++idx]="pr-prebuild-clang" +# echo "${prebuild_plugins[idx]} is starting." +# echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the code formatting style with clang-format" +# echo "[DEBUG] The current path: $(pwd)." +# echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +# source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +#prebuild_plugins[++idx]="pr-prebuild-exclusive-vio" +# echo "${prebuild_plugins[idx]} is starting." +# echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check issue #279. VIO commits should not touch non VIO files." +# echo "[DEBUG] The current path: $(pwd)." +# echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +# source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-pylint" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the code formatting style with pylint" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-newline" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check if there is a newline issue in text files" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-rpm-spec" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check if there is incorrect staements in *.spec file" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-file-size" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the file size to not include big binary files" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-cppcheck" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_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/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-nobody" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the commit message body" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-timestamp" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the timestamp of the commit" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-executable" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_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/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-hardcoded-path" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check prohibited hardcoded paths (/home/* for now)" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-misspelling" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_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/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-doxygen-build" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check a doxygen grammar if a doxygen can normally generate source code" + +prebuild_plugins[++idx]="pr-prebuild-sloccount" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check physical Source Lines of Code (SLOC) in a source code" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-prohibited-words" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check if source codes have prohibited words." +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-signed-off-by" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check 'Signed-off-by' in commit body" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-shellcheck" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check a syntax error in a shell script file with 'shellcheck' package" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-flawfinder" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check security problems in the C/C++ source code with 'flawfinder' package" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +prebuild_plugins[++idx]="pr-prebuild-coverity" +echo "${prebuild_plugins[idx]} is starting." +echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check defects in the C/C++ source code with 'coverity' package" +echo "[DEBUG] The current path: $(pwd)." +echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh" +source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh + +################################################################################################################## +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/.TAOS-CI/taos/config/config-server-administrator.sh b/.TAOS-CI/config/config-server-administrator.sh similarity index 92% rename from .TAOS-CI/taos/config/config-server-administrator.sh rename to .TAOS-CI/config/config-server-administrator.sh index 0a4d1fa..56d1b46 100644 --- a/.TAOS-CI/taos/config/config-server-administrator.sh +++ b/.TAOS-CI/config/config-server-administrator.sh @@ -3,8 +3,6 @@ # Do not append a license statement in the configuration file for a differnet license-based repository. ## -## SPDX-License-Identifier: LGPL-2.1-only -## # @file config-server-administrator.sh # @brief configuration file to declare contents that a server administrator installed. # @see https://github.com/nnsuite/TAOS-CI @@ -14,7 +12,7 @@ ########### 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. +# In order to know how to install eSDK, please read plugins-base/pr-postbuild-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" diff --git a/.TAOS-CI/config/config-webhook.json b/.TAOS-CI/config/config-webhook.json new file mode 100644 index 0000000..806fb1c --- /dev/null +++ b/.TAOS-CI/config/config-webhook.json @@ -0,0 +1,14 @@ +{ + "github": { + "website": "github.com", + "id": "taos-ci", + "email": "taos-ci@github.io", + "secret": "xxxxxxxxx" + }, + "broken_arrow": { + "id": "admin", + "pass": "xxxxxxxx", + "ip": " " + } +} + diff --git a/.TAOS-CI/taos/config/prohibited_words.txt b/.TAOS-CI/config/prohibited_words.txt similarity index 100% rename from .TAOS-CI/taos/config/prohibited_words.txt rename to .TAOS-CI/config/prohibited_words.txt diff --git a/.TAOS-CI/taos/auto-unittest.sh b/.TAOS-CI/taos/auto-unittest.sh deleted file mode 100644 index f503278..0000000 --- a/.TAOS-CI/taos/auto-unittest.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -## -## SPDX-License-Identifier: LGPL-2.1-only -## -# @file auto-unittest.sh -# @brief Auto-generate unit test result -# @how to append this script to /etc/crontab -# $ sudo vi /etc/crontab -# 30 * * * * www-data /var/www/html/nnstreamer/ci/taos/auto-unittest.sh -# @see https://github.com/nnsuite/nnstreamer -# @author Sewon Oh -# @param None -# - -# Set-up environements -dirpath="$( cd "$( dirname "$0")" && pwd )" -build_root="${dirpath}/../../" -arch_type="x86_64 armv7l aarch64" -echo -e "[DEBUG] dirpath : $dirpath" -echo -e "[DEBUG] build_root : $build_root" -source ./common/api_collection.sh - -# Check dependency -check_dependency gbs -check_dependency mkdir -check_dependency mv -check_dependency rm - - -# Create result folder -pushd ${build_root} -if [[ -d ci/unittest_result ]]; then - rm -rf ci/unittest_result/* -else - mkdir -p ci/unittest_result -fi -for arch in $arch_type -do - # Gbs build for unit test - # Unit test for ${arch} - gbs build -A ${arch} --overwrite --clean --define "unit_test 1" > temp.txt - - # Parsing result - test_flag=0 - while IFS='' read -r line || [[ -n "$line" ]]; do - if [[ $line =~ "./tests/unittest_common" ]]; then - test_flag=1 - fi - - if [[ $line =~ "+ ssat" ]]; then - test_flag=2 - mv result.txt ci/unittest_result/unit_test_common_result_${arch}.txt - fi - - if [[ $line =~ "popd" ]]; then - test_flag=0 - fi - - if [[ $test_flag -ne 0 ]]; then - echo "$line" >> result.txt - fi - done < temp.txt - mv result.txt ci/unittest_result/ssat_result_${arch}.txt -done -rm temp.txt -popd - diff --git a/.TAOS-CI/taos/config/config-environment.sh b/.TAOS-CI/taos/config/config-environment.sh deleted file mode 100644 index 4b0fb35..0000000 --- a/.TAOS-CI/taos/config/config-environment.sh +++ /dev/null @@ -1,131 +0,0 @@ -#!/usr/bin/env bash - -# Do not append a license statement in the configuration file for a differnet license-based repository. - -## -## SPDX-License-Identifier: LGPL-2.1-only -## -# @file config-environment.sh -# @brief The configuration file to maintain all scripts -# @see https://github.com/nnsuite/TAOS-CI -# @author Geunsik Lim -# -# This script is to maintain consistently all scripts files. -# -# If you have to run this CI script at the below environment, Please change -# the contents appropriately. -# a. In case that you want to apply this CI script to another repository -# b. In case that you have to install CI in a new CI server for more high-performance -# c. In case that you need to create new project -# - -################# Modify the below statements for your server ####################### - - -#### Repository setting - -# Token ID: Connecting to a repository using token id instead of id-name@github.io -# in case of two-authentification situation. Refer to https://github.com/settings/tokens -TOKEN="xxxxxxxxxxxx558807ed7a0cdd02bfd6d431d7ca" - -# Name of account (or orgranzation) -GITHUB_ACCOUNT="nnsuite" - -# Project name of github website -PRJ_REPO_UPSTREAM="nnstreamer" - -# CI Server webaddress. Should end with / -CISERVER="http://nnsuite.mooo.com/" - -# Format area (pr-format) -# Add root path of source folders -# Specify a path of source code -# 1) to check prohibited hardcoded paths (e.g., /home/* for now) -# 2) to check code formatting sytele with clang-format -SRC_PATH="./gst/" - -# Audit Area (pr-audit) -# Skip build-checker / unit-test checker if all changes are limited to: -# The path starts without / and it denotes the full paths in the git repo. (regex) -SKIP_CI_PATHS_AUDIT="^ci/.*|^Documentation/.*|^\.github/.*|^obsolete/.*|^README\.md|^external/.*|^temporal-bin/.*" - -# Format Area (pr-format) -# declare a folder name to skip the file size and newline inspection. -# (e.g., /temproal-bin/) -SKIP_CI_PATHS_FORMAT="temporal-bin" - -# Define the number of CPUs to build source codes in parallel -# We recommend that you define appropriate # of CPUs that does not result in -# Out-Of-Memory and Too mnay task migration among the CPUs. -CPU_NUM=3 - -#### Automatic PR commenter: enabling(1), disabling(0) - -# inform PR submitter of a rule to pass the CI process -pr_comment_notice=1 - -# inform all developers of their activity whenever PR submitter resubmit their PR after applying comments of reviews -pr_comment_pr_updated=0 - -# inform PR submitter that they do not have to merge their own PR directly. -pr_comment_self_merge=0 - -# infrom PR submitter of how to submit a PR that include lots of commits. -pr_comment_many_commit=0 - -# inform PR submitter of the webpage address in order that they can monitor the current status of their PR. -pr_comment_pr_monitor=0 - -#### Build test: Write build type to test ex) "x86_64 armv7l" -pr_build_arch_type="x86_64 i586 armv7l aarch64" - -### Check level of doxygen tag: -# Basic = 0 (@file + @brief) -# Advanced = 1 (Basic + "@author, @bug and functions with ctags") -pr_doxygen_check_level=1 - -### Check level of CPPCheck: -# CPPCheck Level 0: The check level is 'err'. -# CPPCheck Level 1: 'err' + 'warning,performance,unusedFunction' -pr_cppcheck_check_level=0 - -#### File size limit -# unit of the file size is MB. -filesize_limit=5 - - -#### Build mode of software platform - -# BUILD_MODE_***=0 : execute a build process without a debug file. -# BUILD_MODE_***=1 : execute a build process with a debug file. -# BUILD_MODE_***=99 : skip a build process (by default) -# -# Note: if a packaging management is not normally executed for package build, you must declare `BUILD_MODE_***=99` unavoidably -# 1) Tizen (packaging/*.spec): If a maintainer done the gbs based build process, you may change builde mode from 99 to 0. -# 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=0 -BUILD_MODE_YOCTO=99 - -# Pull Request Scheduler: The number of jobs on Run-Queue to process PRs -RUN_QUEUE_PR_JOBS=8 - -# Version format: Major.Minor -VERSION="1.20181123" - -#### Location - -# Reference repository to speed up "git clone" command -REFERENCE_REPOSITORY="/home/taos/public_html/$PRJ_REPO_UPSTREAM/" - -# RPM repo cache for GBS build -REPOCACHE="/home/taos/public_html/$PRJ_REPO_UPSTREAM/repo_cache/" - -# Github repostiroy webaddress -REPOSITORY_WEB="https://github.com/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM" -REPOSITORY_GIT="https://github.com/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM.git" - -# Github webhook API -GITHUB_WEBHOOK_API="https://api.github.com/repos/$GITHUB_ACCOUNT/$PRJ_REPO_UPSTREAM" - diff --git a/.TAOS-CI/taos/config/config-plugins-audit.sh b/.TAOS-CI/taos/config/config-plugins-audit.sh deleted file mode 100644 index c2642ec..0000000 --- a/.TAOS-CI/taos/config/config-plugins-audit.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/usr/bin/env bash - -# Do not append a license statement in the configuration file for a differnet license-based repository. - -## -## SPDX-License-Identifier: LGPL-2.1-only -## -# @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 - -##### Set environment for audit plugins -declare -i idx=-1 - -###### plugins-base ############################################################################################### -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" -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 Tizen rpm package is successfully generated." -echo "[DEBUG] Current path: $(pwd)." -source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh - - -audit_plugins[++idx]="pr-audit-build-ubuntu" -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 Ubuntu deb package is successfully generated." -echo "[DEBUG] Current path: $(pwd)." -source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh - - -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-good: Plugin group that follow a writing rule with good quality" -# Please append your plugin modules here. - - - - - - -###### plugins-staging ################################################################################################ -echo "[MODULE] plugins-staging: Plugin group that does not have evaluation and aging test enough" -# Please append your plugin modules here. - -# module_name="pr-audit-resource" -# echo "[DEBUG] $module_name is started." -# echo "[DEBUG] TAOS/$module_name: Check if there are not-installed resource files." -# echo "[DEBUG] Current path: $(pwd)." -# source ${REFERENCE_REPOSITORY}/ci/taos/plugins-staging/$module_name.sh -# $module_name -# echo "[DEBUG] $module_name is done." - -#audit_plugins[++idx]="pr-audit-nnstreamer-ubuntu-apptest" -# @todo Fixme. AppTest with Meson! -#echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check nnstreamer sample app" -#echo "[DEBUG] ${audit_plugins[idx]} is started." -#echo "[DEBUG] Current path: $(pwd)." -#source ${REFERENCE_REPOSITORY}/ci/taos/plugins-staging/${audit_plugins[idx]}.sh - diff --git a/.TAOS-CI/taos/config/config-plugins-format.sh b/.TAOS-CI/taos/config/config-plugins-format.sh deleted file mode 100644 index 502647b..0000000 --- a/.TAOS-CI/taos/config/config-plugins-format.sh +++ /dev/null @@ -1,149 +0,0 @@ -#!/usr/bin/env bash - -# Do not append a license statement in the configuration file for a differnet license-based repository. - -## -## SPDX-License-Identifier: LGPL-2.1-only -## -# @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 - - -##### Set environment for format plugins -declare -i idx=-1 - -################################################################################################################## -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-tag" -echo "${format_plugins[idx]} is starting." -echo "[MODULE] TAOS/${format_plugins[idx]}: Check a source code consists of required doxygen tags." -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 "[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-clang" -# echo "${format_plugins[idx]} is starting." -# echo "[MODULE] TAOS/${format_plugins[idx]}: Check the code formatting style with clang-format" -# 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 "[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 "[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 "[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 are incorrect staements in *.spec file" -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 "[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 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 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 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 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-format-hardcoded-path" -echo "${format_plugins[idx]} is starting." -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" - -format_plugins[++idx]="pr-format-sloccount" -echo "${format_plugins[idx]} is starting." -echo "[MODULE] TAOS/${format_plugins[idx]}: Check physical Source Lines of Code (SLOC) in a 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 - -format_plugins[++idx]="pr-format-prohibited-words" -echo "${format_plugins[idx]} is starting." -echo "[MODULE] TAOS/${format_plugins[idx]}: Check if source codes have prohibited words." -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-signed-off-by" -echo "${format_plugins[idx]} is starting." -echo "[MODULE] TAOS/${format_plugins[idx]}: Check 'Signed-off-by' in commit 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 - - -################################################################################################################## -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/.TAOS-CI/taos/config/config-webhook.json b/.TAOS-CI/taos/config/config-webhook.json deleted file mode 100644 index dfa62ac..0000000 --- a/.TAOS-CI/taos/config/config-webhook.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "github": { - "website": "github.com", - "id": "", - "email": "@github.io", - "secret": "" - }, - "broken_arrow": { - "id": "", - "pass": "", - "ip": "" - } -} diff --git a/.TAOS-CI/taos/menu.html b/.TAOS-CI/taos/menu.html deleted file mode 100644 index 5212425..0000000 --- a/.TAOS-CI/taos/menu.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - -   Home   - - - - -   - - -   - - - -