Diff

Differences From Artifact [be28bec658]:

To Artifact [39e215273c]:


55
56
57
58
59
60
61


62
63
64
65
66
67
68
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
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)
			tagsToAdd=("${tagsToAdd[@]}" build-pass)
		fi

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