Check-in [7931b61ae9]
Overview
Comment:Updated to support options for omitting redundant or passing tags
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7931b61ae926629c8cb75abdf6c0fb8ffee4e3152c2c945837d52ccbe7245d38
User & Date: rkeene on 2017-10-26 18:09:06.180
Other Links: manifest | tags
Context
2017-10-26
18:14
Updated to use smaller CSS icons check-in: 7484ed667c user: rkeene tags: trunk
18:09
Updated to support options for omitting redundant or passing tags check-in: 7931b61ae9 user: rkeene tags: trunk
17:08
Added more status and action icons check-in: c316f97cae user: rkeene tags: trunk
Changes
55
56
57
58
59
60
61


62
63
64
65
66
67
68
postCommands=()
branchPostCommands=()
testCommands=()
builderID=''
projectName="$(fossil info -R "${repository}" | awk '/^project-name:/{ sub(/^project-name: */, ""); gsub(/ /, ""); print; }')"
tagSuffix=''
tagPrefix=''



## 5.b. Read config
config="$(fossil cat -R "${repository}" -r trunk "${fossilCIDir}/config" 2>/dev/null)" || :

## 5.c Load config
if [ -f  ~/.fossil-ci/config ]; then
	. ~/.fossil-ci/config







>
>







55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
postCommands=()
branchPostCommands=()
testCommands=()
builderID=''
projectName="$(fossil info -R "${repository}" | awk '/^project-name:/{ sub(/^project-name: */, ""); gsub(/ /, ""); print; }')"
tagSuffix=''
tagPrefix=''
tagOmitRedundant='0'
tagOmitPass='0'

## 5.b. Read config
config="$(fossil cat -R "${repository}" -r trunk "${fossilCIDir}/config" 2>/dev/null)" || :

## 5.c Load config
if [ -f  ~/.fossil-ci/config ]; then
	. ~/.fossil-ci/config
159
160
161
162
163
164
165

166

167
168

169

170
171
172
173
174
175
176
			done
		) > "${builddir}/test.log" 2>&1 || tests_pass='0'
	fi

	### 7.h. Tag the branch with
	tagsToAdd=()
	if [ "${build_pass}" = '1' ]; then

		tagsToAdd=("${tagsToAdd[@]}" build-pass)


		if [ "${tests_pass}" = '1' ]; then

			tagsToAdd=("${tagsToAdd[@]}" tests-pass)

		else
			tagsToAdd=("${tagsToAdd[@]}" tests-fail)
		fi
	else
		tagsToAdd=("${tagsToAdd[@]}" build-fail)
	fi








>
|
>


>
|
>







161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
			done
		) > "${builddir}/test.log" 2>&1 || tests_pass='0'
	fi

	### 7.h. Tag the branch with
	tagsToAdd=()
	if [ "${build_pass}" = '1' ]; then
		if [ "${tagOmitRedundant}" != '1' -a "${tagOmitPass}" != '1' ]; then
			tagsToAdd=("${tagsToAdd[@]}" build-pass)
		fi

		if [ "${tests_pass}" = '1' ]; then
			if [ "${tagOmitPass}" != '1' ]; then
				tagsToAdd=("${tagsToAdd[@]}" tests-pass)
			fi
		else
			tagsToAdd=("${tagsToAdd[@]}" tests-fail)
		fi
	else
		tagsToAdd=("${tagsToAdd[@]}" build-fail)
	fi