mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 22:58:21 +00:00
CI: Initial commit for moving CI into source repo
Create tests/CI directory and add files used by Jenkins to build and test Asterisk. With this commit, Jenkins will run the Asterisk Unit Tests using the Jenkinsfile at tests/CI/unittests.jenkinsfile. Bash scripts to do the actual building and testing are also in the same directory. Output is placed in tests/CI/output so that directory has been added to .gitignore. Change-Id: I9448065465e6de2b878634510ace8fd1ef378608
This commit is contained in:
26
tests/CI/ci.functions
Normal file
26
tests/CI/ci.functions
Normal file
@@ -0,0 +1,26 @@
|
||||
#
|
||||
# This file contains useful Bash functions
|
||||
# and can be "source"d from the scripts.
|
||||
#
|
||||
|
||||
for a in "$@" ; do
|
||||
OPTION_COUNT+=1
|
||||
case "$a" in
|
||||
--*=*)
|
||||
[[ $a =~ --([^=]+)=(.*) ]]
|
||||
l=${BASH_REMATCH[1]//-/_}
|
||||
r=${BASH_REMATCH[2]}
|
||||
eval ${l^^}=\"$r\"
|
||||
;;
|
||||
--*)
|
||||
[[ $a =~ --(.+) ]]
|
||||
l=${BASH_REMATCH[1]//-/_}
|
||||
eval ${l^^}=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
runner() {
|
||||
( set -x ; "$@" )
|
||||
}
|
||||
|
Reference in New Issue
Block a user