-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
executable file
·59 lines (44 loc) · 1.31 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /usr/bin/env bash
shared_install_location=$(pwd)
shared_debug=0
if [ ! -e "$(pwd)/module.sh" ]; then
echo "!! config not found !!"
exit 1
fi
source "$(pwd)/module.sh"
pkg::import logger
pkg::import execute
pkg::import exiting
pkg::import git
git_from=a69824f
git_to=7a24809
logger::header "loader"
logger::write "Logger is loaded: $(pkg::module_loaded logger)"
logger::header "header"
logger::log "log"
logger::warn "warn"
logger::error "error"
logger::writealways "writealways"
logger::header "execute"
execute::exec_and_continue_on_ok "echo 'a'"
logger::header "git"
rev="${git_from}"
git::set_describe
logger::writealways "result: ${git_result_describe}"
rev="0.4.1"
git::set_describe_tags
logger::writealways "result: ${git_result_describe_tags}"
newrev=${git_to}
oldrev=${git_from}
git::set_rev_types
logger::writealways "git_result_newrev_type: ${git_result_newrev_type}"
logger::writealways "git_result_oldrev_type: ${git_result_oldrev_type}"
logger::writealways "git_result_rev: ${git_result_rev}"
logger::writealways "git_result_rev_type: ${git_result_rev_type}"
git::set_change_type
logger::writealways "git_result_change_type: ${git_result_change_type}"
refname="develop"
git::set_new_commits
logger::writealways "git_result_new_commits: ${git_result_new_commits}"
logger::header "exiting"
exiting::quit 0