GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — livecode/buildbot.mk at develop · Pebah/livecode Expand file tree/ Copy pathbuildbot.mkMore file actions 286 lines (238 loc) · 9.29 KB / Copy pathbuildbot.mkFile metadata and controls286 lines (238 loc) · 9.29 KB 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 # Copyright (C) 2015 LiveCode Ltd. # # This file is part of LiveCode. # # LiveCode is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License v3 as published by the Free # Software Foundation. # # LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with LiveCode. If not see <http://www.gnu.org/licenses/>. # This file contains rules used by the LiveCode Buildbot installation at # <https://vulcan.livecode.com/> # Load version information include version # Get git commit information ifeq ($(BUILD_EDITION),commercial) GIT_VERSION=g$(shell git --git-dir=../.git rev-parse --short HEAD) else GIT_VERSION=g$(shell git rev-parse --short HEAD) endif ################################################################ # Configure with gyp ################################################################ # Buildbot must set the variables PLATFORM and SUBPLATFORM ifeq ($(BUILD_SUBPLATFORM),) CONFIG_TARGET = config-$(BUILD_PLATFORM) else CONFIG_TARGET = config-$(BUILD_PLATFORM)-$(BUILD_SUBPLATFORM) endif config: $(MAKE) $(CONFIG_TARGET) .PHONY: config ################################################################ # Compile ################################################################ # Buildbot must set the variables PLATFORM and SUBPLATFORM ifeq ($(BUILD_SUBPLATFORM),) COMPILE_TARGET = compile-$(BUILD_PLATFORM) else COMPILE_TARGET = compile-$(BUILD_PLATFORM)-$(BUILD_SUBPLATFORM) endif compile: $(MAKE) $(COMPILE_TARGET) .PHONY: compile ################################################################ # Archive / extract built binaries ################################################################ bin-archive: tar -Jcvf $(BUILD_PLATFORM)-bin.tar.xz $(BUILD_PLATFORM)-bin bin-extract: find . -maxdepth 1 -name '*-bin.tar.xz' -print0 | xargs -0 -n1 tar -xvf ################################################################ # Installer generation ################################################################ # BUILD_PLATFORM will be set to the platform on which the installer's being # built. Its build artefacts will have been extracted into the # ./$(BUILD_PLATFORM)-bin/ directory BUILD_STABILITY ?= beta BUILDTOOL_STACK = builder/builder_tool.livecodescript WKHTMLTOPDF ?= $(shell which wkhtmltopdf 2>/dev/null) BUILD_EDITION ?= community # Those directories are given to the tool builder, and they might get passed # (like private-dir) to engine functions, to which a path relative to this file # becomes invalid). top_src_dir=${PWD} engine_dir=${top_src_dir} output_dir=${top_src_dir} work_dir=${top_src_dir}/_cache/builder_tool private_dir=${top_src_dir}/.. bin_dir = ${top_src_dir}/$(BUILD_PLATFORM)-bin docs_source_dir = ${top_src_dir}/docs docs_private_source_dir = ${private_dir}/docs docs_build_dir = ${top_src_dir}/_build/docs-build ifeq ($(BUILD_PLATFORM),mac) LIVECODE = $(bin_dir)/LiveCode-Community.app/Contents/MacOS/LiveCode-Community buildtool_platform = mac UPLOAD_ENABLE_CHECKSUM ?= no UPLOAD_RELEASE_NOTES ?= no else ifeq ($(BUILD_PLATFORM),linux-x86) LIVECODE = $(bin_dir)/LiveCode-Community buildtool_platform = linux UPLOAD_ENABLE_CHECKSUM ?= yes UPLOAD_RELEASE_NOTES ?= no else ifeq ($(BUILD_PLATFORM),linux-x86_64) LIVECODE = $(bin_dir)/LiveCode-Community buildtool_platform = linux UPLOAD_ENABLE_CHECKSUM ?= yes UPLOAD_RELEASE_NOTES ?= yes endif # FIXME add --warn-as-error buildtool_command = $(LIVECODE) -ui $(BUILDTOOL_STACK) \ --build $(BUILD_STABILITY) \ --engine-dir ${engine_dir} --output-dir ${output_dir} --work-dir ${work_dir} \ --private-dir ${private_dir} # Settings for upload RSYNC ?= rsync SHA1SUM ?= sha1sum UPLOAD_SERVER ?= meg.on-rev.com UPLOAD_PATH = staging/$(BUILD_LONG_VERSION)/$(GIT_VERSION) UPLOAD_MAX_RETRIES = 50 ifeq ($(BUILD_EDITION),commercial) dist-docs: dist-docs-commercial dist-docs: dist-guide-commercial dist-notes: dist-notes-commercial endif dist-docs: dist-docs-community dist-docs: dist-guide-community dist-notes: dist-notes-community dist-docs-community: mkdir -p $(docs_build_dir) $(buildtool_command) --platform $(buildtool_platform) --stage docs \ --edition community \ --built-docs-dir $(docs_build_dir)/cooked-community dist-docs-commercial: mkdir -p $(docs_build_dir) $(buildtool_command) --platform $(buildtool_platform) \ --stage docs --edition indy \ --built-docs-dir $(docs_build_dir)/cooked-commercial $(buildtool_command) --platform $(buildtool_platform) \ --stage docs --edition business \ --built-docs-dir $(docs_build_dir)/cooked-commercial dist-notes-community: WKHTMLTOPDF=$(WKHTMLTOPDF) \ $(buildtool_command) --platform $(buildtool_platform) \ --stage notes --warn-as-error \ --built-docs-dir $(docs_build_dir)/cooked-community dist-notes-commercial: WKHTMLTOPDF=$(WKHTMLTOPDF) \ $(buildtool_command) --platform $(buildtool_platform) \ --stage notes --warn-as-error \ --built-docs-dir $(docs_build_dir)/cooked-commercial dist-guide-community: WKHTMLTOPDF=$(WKHTMLTOPDF) \ $(buildtool_command) --platform $(buildtool_platform) \ --edition community \ --stage guide --warn-as-error dist-guide-commercial: WKHTMLTOPDF=$(WKHTMLTOPDF) \ $(buildtool_command) --platform $(buildtool_platform) \ --edition indy \ --stage guide --warn-as-error WKHTMLTOPDF=$(WKHTMLTOPDF) \ $(buildtool_command) --platform $(buildtool_platform) \ --edition business \ --stage guide --warn-as-error ifeq ($(BUILD_EDITION),commercial) dist-server: dist-server-commercial endif dist-server: dist-server-community dist-server-community: $(buildtool_command) --platform mac --platform win --platform linux \ --stage server --edition community --warn-as-error dist-server-commercial: $(buildtool_command) --platform mac --platform win --platform linux \ --stage server --edition commercial --warn-as-error ifeq ($(BUILD_EDITION),commercial) dist-tools: dist-tools-commercial distmac-disk: distmac-disk-indy distmac-disk-business endif dist-tools: dist-tools-community distmac-disk: distmac-disk-community dist-tools-community: $(buildtool_command) --platform mac --platform win --platform linux --stage tools --edition community \ --built-docs-dir $(docs_build_dir)/cooked-community dist-tools-commercial: $(buildtool_command) --platform mac --platform win --platform linux --stage tools --edition indy \ --built-docs-dir $(docs_build_dir)/cooked-commercial $(buildtool_command) --platform mac --platform win --platform linux --stage tools --edition business \ --built-docs-dir $(docs_build_dir)/cooked-commercial distmac-bundle-community: $(buildtool_command) --platform mac --stage bundle --edition community distmac-bundle-indy: $(buildtool_command) --platform mac --stage bundle --edition indy distmac-bundle-business: $(buildtool_command) --platform mac --stage bundle --edition business # Make a list of installers to be uploaded to the distribution server, and release notes # If a checksum file is needed, generate it with sha1sum # Upload the release notes if we are on Linux dist-upload-files.txt sha1sum.txt: set -e; \ find . -maxdepth 1 -name 'LiveCode*-*-Mac.dmg' \ -o -name 'LiveCode*Installer-*-Windows.exe' \ -o -name 'LiveCode*Installer-*-Linux.*' \ -o -name 'LiveCode*Server-*-Linux*.zip' \ -o -name 'LiveCode*Server-*-Mac.zip' \ -o -name 'LiveCode*Server-*-Windows.zip' \ -o -name 'LiveCode*Docs-*.zip' \ -o -name '*-bin.tar.xz' \ > dist-upload-files.txt; \ if test "${UPLOAD_RELEASE_NOTES}" = "yes"; then \ find . -maxdepth 1 -name 'LiveCodeNotes*.pdf' >> dist-upload-files.txt; \ find . -maxdepth 1 -name 'LiveCodeNotes*.html' >> dist-upload-file; \ fi; \ if test "$(UPLOAD_ENABLE_CHECKSUM)" = "yes"; then \ $(SHA1SUM) < dist-upload-files.txt > sha1sum.txt; \ echo sha1sum.txt >> dist-upload-files.txt; \ else \ touch sha1sum.txt; \ fi # Perform the upload. This is in two steps: # (1) Create the target directory # (2) Transfer the files using rsync # # We need to do the actual transfer in a loop to deal with possible # connection drops dist-upload-mkdir: ssh $(UPLOAD_SERVER) "mkdir -p \"$(UPLOAD_PATH)\"" dist-upload: dist-upload-files.txt dist-upload-mkdir trap "echo Interrupted; exit;" SIGINT SIGTERM; \ i=0; \ false; \ while [ $$? -ne 0 -a $$i -lt $(UPLOAD_MAX_RETRIES) ] ; do \ i=$$(($$i+1)); \ rsync -v --progress --partial --chmod=ugo=rwX --executability \ --files-from=dist-upload-files.txt . $(UPLOAD_SERVER):"\"$(UPLOAD_PATH)\""; \ done; \ rc=$$?; \ if [ $$i -eq $(UPLOAD_MAX_RETRIES) ]; then \ echo "Maximum retries reached, giving up"; \ fi; \ exit $$rc # This rule is used for packing the Mac installer contents; the # resulting archive gets transferred to a Mac for signing and # conversion to a DMG. distmac-archive: find . -maxdepth 1 -name 'LiveCode*Installer-*-Mac.app' -print0 \ | xargs -0 tar -Jcvf mac-installer.tar.xz distmac-extract: tar -xvf mac-installer.tar.xz # Final installer creation for Mac distmac-disk-%: distmac-bundle-% $(buildtool_command) --platform mac --stage disk --edition $* distmac-upload: dist-upload |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |