[CI] Add TAOS-CI config files for nnstreamer
authorsewon.oh <sewon.oh@samsung.com>
Thu, 28 Jun 2018 05:31:24 +0000 (14:31 +0900)
committer임근식/동작제어Lab(SR)/Principal Engineer/삼성전자 <geunsik.lim@samsung.com>
Fri, 29 Jun 2018 03:52:03 +0000 (12:52 +0900)
1st
- config files: copy files
- Documentation/ci-config/README.md: describe how to use these files.
- ./README.md: add link ci-config readme file.

2nd
- ./README.md: modify to change line

3rd
- merge: some files are added.
- Documentation/ci-config/README.md: command change to link ci-config folder

Signed-off-by: Sewon Oh <sewon.oh@samsung.com>
Documentation/ci-config/README.md [new file with mode: 0644]
Documentation/ci-config/config-cibot.json [new file with mode: 0644]
Documentation/ci-config/config-environment.sh [new file with mode: 0644]
Documentation/ci-config/config-plugins-audit.sh [new file with mode: 0644]
Documentation/ci-config/config-plugins-format.sh [new file with mode: 0644]
README.md

diff --git a/Documentation/ci-config/README.md b/Documentation/ci-config/README.md
new file mode 100644 (file)
index 0000000..6e48f6b
--- /dev/null
@@ -0,0 +1,14 @@
+# How to use config files
+
+These are TAOS-CI config files for nnstreamer.
+
+- http://suprem.sec.samsung.net/STAR/TAOS-CI
+
+## How to use
+
+After adding TAOS-CI submodule in your project, link them.
+
+```bash
+$ mv TAOS-CI/ci/standalone/config/ TAOS-CI/ci/standalone/config.backup
+$ ln -s $PWD/Documentation/ci-config $PWD/TAOS-CI/ci/standalone/config
+```
diff --git a/Documentation/ci-config/config-cibot.json b/Documentation/ci-config/config-cibot.json
new file mode 100644 (file)
index 0000000..1adb0ad
--- /dev/null
@@ -0,0 +1,15 @@
+{
+    "github": {
+        "id": "git.bot.sec",
+        "token": "01eec554abcaae8755c06c2b06f5d6bb84d4b4a5",
+        "from": "git.bot.sec@samsung.com"
+    },
+    "repo": {
+        "repo": "https://github.sec.samsung.net/STAR/nnstreamer.git",
+        "branch": "tizen",
+        "action": "something has been changed on the server",
+        "run": "./run-unit-test.sh"
+    }
+}
+
+
diff --git a/Documentation/ci-config/config-environment.sh b/Documentation/ci-config/config-environment.sh
new file mode 100644 (file)
index 0000000..0b1254e
--- /dev/null
@@ -0,0 +1,84 @@
+#!/usr/bin/env bash
+
+##
+# @file config-environment.sh
+# @brief Environment file to control all scripts commonly for CI bot
+#
+# This script to maintain consistently all scripts files via this file. 
+# In the near future, all configuration variables will be integrated into this file. 
+#
+# In case that 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
+# Project name of github.sec.samsung.net
+PRJ_REPO_UPSTREAM="nnstreamer"
+
+# CI Server webaddress. Should end with /
+CISERVER="http://aaci.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="^ci/.*|^Documentation/.*|^\.github/.*|^obsolete/.*|^README\.md"
+
+# 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 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
+
+
+################# Do not modify the below statements #################################
+
+# Connecting to a repository using token id instead of git.bot.sec@samsung.com id
+# because of two-authentification. Refer to https://github.sec.samsung.net/settings/tokens
+TOKEN="01eec554abcaae8755c06c2b06f5d6bb84d4b4a5"
+
+# Email-address
+# Note that we have to log-in at least 3 times per a month to avoid deletion of the ID
+# according to announcement of "전자녹스포탈" (knoxportal.sec@samsung.com).
+EMAIL="git.bot.sec@samsung.com"
+
+# Reference repository to speed up "git clone" command
+REFERENCE_REPOSITORY="/var/www/html/$PRJ_REPO_UPSTREAM/"
+
+# RPM repo cache for GBS build
+REPOCACHE="/var/www/html/$PRJ_REPO_UPSTREAM/repo_cache/"
+
+# Github repostiroy webaddress
+REPOSITORY_WEB="https://github.sec.samsung.net/STAR/$PRJ_REPO_UPSTREAM"
+REPOSITORY_GIT="https://github.sec.samsung.net/STAR/$PRJ_REPO_UPSTREAM.git"
+
+# Github webhook API
+GITHUB_WEBHOOK_API="https://github.sec.samsung.net/api/v3/repos/STAR/$PRJ_REPO_UPSTREAM"
+
+
+
+
diff --git a/Documentation/ci-config/config-plugins-audit.sh b/Documentation/ci-config/config-plugins-audit.sh
new file mode 100644 (file)
index 0000000..5b7103c
--- /dev/null
@@ -0,0 +1,47 @@
+#!/usr/bin/env bash
+
+##
+# @file config-plugins-audit.sh
+# @brief add plugin modules for a github repository
+
+###### plugins-base ###############################################################################################
+echo "[MODULE] plugins-base: Plugin group that follow Apache license with good quality"
+# Please append your plugin modules here.
+
+module_name="pr-audit-build-tizen"
+echo "[DEBUG] $module_name is started."
+echo "[DEBUG] CI/$module_name: Check if Tizen rpm package is successfully generated."
+echo "[DEBUG] Current path: $(pwd)."
+source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-base/$module_name.sh
+$module_name
+echo "[DEBUG] $module_name is done."
+
+module_name="pr-audit-build-ubuntu"
+echo "[DEBUG] $module_name is started."
+echo "[DEBUG] CI/$module_name: Check if Ubuntu deb package is successfully generated."
+echo "[DEBUG] Current path: $(pwd)."
+source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-base/$module_name.sh
+$module_name
+echo "[DEBUG] $module_name is done."
+
+###### plugins-good ###############################################################################################
+echo "[MODULE] plugins-good: Plugin group that follow Apache license with good quality"
+# Please append your plugin modules here.
+
+
+
+
+
+
+###### plugins-ugly ################################################################################################
+echo "[MODULE] plugins-ugly: 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] CI/$module_name: Check if there are not-installed resource files."
+echo "[DEBUG] Current path: $(pwd)."
+source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-ugly/$module_name.sh
+$module_name
+echo "[DEBUG] $module_name is done."
+
diff --git a/Documentation/ci-config/config-plugins-format.sh b/Documentation/ci-config/config-plugins-format.sh
new file mode 100644 (file)
index 0000000..5515684
--- /dev/null
@@ -0,0 +1,40 @@
+#!/usr/bin/env bash
+
+##
+# @file config-plugins-format.sh
+# @brief add plugin modules for a github repository
+#
+
+##################################################################################################################
+echo "[MODULE] plugins-good: Plugin group that follow Apache license with good quality"
+# Please append your plugin modules here.
+
+echo "pr-format-indent is starting."
+echo "[MODULE] CI/pr-format-indent: Check the code formatting style with GNU indent"
+echo "Current path: $(pwd)."
+echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-good/pr-format-indent.sh"
+source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-good/pr-format-indent.sh
+pr-format-indent
+echo "pr-format-indent is done."
+
+# echo "pr-format-clang is starting."
+# echo "[MODULE] CI/pr-format-clang: Check the code formatting style with clang-format"
+# echo "Current path: $(pwd)."
+# echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-good/pr-format-clang.sh"
+# source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-good/pr-format-clang.sh
+# pr-format-clang
+# echo "pr-format-clang is done."
+
+echo "pr-format-exclusive-io is starting."
+echo "[MODULE] CI/pr-format-exclusive-vio: Check issue #279. VIO commits should not touch non VIO files."
+echo "Current path: $(pwd)."
+echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-good/pr-format-exclusive-vio.sh"
+source ${REFERENCE_REPOSITORY}/ci/standalone/plugins-good/pr-format-exclusive-vio.sh
+pr-format-exclusive-vio
+echo "pr-format-exclusive-io is done."
+
+
+##################################################################################################################
+echo "[MODULE] plugins-ugly: Plugin group that does not have evaluation and aging test enough"
+# Please append your plugin modules here.
+
index 3116937..a64f134 100644 (file)
--- a/README.md
+++ b/README.md
@@ -89,3 +89,6 @@ The implementation is not there yet for using neural network frameworks.
 ## CI Server
 For more details, please access the following web page.
 * Press [Here](http://aaci.mooo.com/nnstreamer/ci/standalone/).
+
+TAOS-CI config files for nnstreamer
+* Press [Here](http://github.sec.samsung.net/STAR/nnstreamer/tree/tizen/Documentation/ci-config).