Commit Graph

246 Commits

Author SHA1 Message Date
Igor Klopov
895a9302a0 isAlpine, detectAlpine, knownPlatforms 2017-01-20 09:41:38 +03:00
Igor Klopov
070027aa71 modules51 = node7 2017-01-20 09:15:31 +03:00
Igor Klopov
71df9d20e8 uploadMany, downloadMany 2017-01-04 14:33:53 +03:00
Igor Klopov
1475cc773d Cloud class from cloud.js to reuse it for another owner/repo 2017-01-04 14:21:15 +03:00
Igor Klopov
d78acc18a5 indent up again in cloud.js 2017-01-04 14:14:54 +03:00
Igor Klopov
44e0c3812f GitHub class from github.js to reuse it for another owner/repo 2017-01-04 13:24:40 +03:00
Igor Klopov
def2dba76d indent up 2017-01-04 13:06:44 +03:00
Igor Klopov
5ce8143120 divide buildbots to pre-node7 and post-node7 2016-11-15 12:09:03 +03:00
Igor Klopov
16b44639bb add modules 51 to verify.js 2016-11-13 16:59:16 +03:00
Igor Klopov
f2d07fe810 show modules version 2016-11-13 16:58:18 +03:00
igor
9637378b03 tuning dontBuild 2016-10-08 22:27:11 +03:00
Igor Klopov
2466336ae9 fix boolean flags for command line 2016-10-07 20:43:49 +03:00
Igor Klopov
5331250087 enable compilation of node 7 for arm, but disable inspector 2016-10-07 20:23:27 +03:00
igorklopov
24548fd4e6 update tests 2016-10-06 12:57:59 +03:00
Igor Klopov
72f64d3c85 disable v8_inspector for node 6 2016-10-06 05:51:07 +00:00
Igor Klopov
dbb517bd60 one more fix for verify.js for arm 2016-10-05 18:48:55 +03:00
Igor Klopov
a62be08882 uploading fails if it takes more than 30 seconds. fixing it 2016-10-05 01:17:14 +03:00
Igor Klopov
b4fb1ad223 fixes to verify.js for arm 2016-10-04 14:03:29 +00:00
igorklopov
7fc9034865 update test to include verify 2016-10-04 13:22:31 +03:00
igorklopov
106eebb8a1 verify sourceless functions before upload 2016-10-04 12:33:05 +03:00
Igor Klopov
195d0a5817 seems node 7 beta does not compile on arm 2016-10-02 22:16:14 +03:00
Igor Klopov
eaf1bab6c6 make dontBuild accessible from pkg 2016-10-02 20:45:36 +03:00
Igor Klopov
030438c049 disable x86 for freebsd 2016-10-02 11:05:47 +00:00
Igor Klopov
058f1f26b1 add support for freebsd 2016-10-01 19:55:13 +00:00
igorklopov
b85086dab3 term 'download' -> 'fetch'. to match '-f' option instead of '-d' 2016-09-29 10:56:13 +03:00
Igor Klopov
4e7dff3922 dont append '0' to tag name 2016-09-27 17:48:54 +03:00
igorklopov
0b25191b3d make new binaries look more different from old ones 2016-09-24 17:36:48 +04:00
Igor Klopov
96cb54de85 make build process work with particular commit 2016-09-24 08:05:21 +00:00
Igor Klopov
a606a41b3e do not report twice 2016-09-15 22:35:41 +00:00
igorklopov
41224865e2 show lines if they contain just a zero number 2016-09-12 18:59:16 +03:00
igorklopov
0e68f3afb3 include tag into basename. to be ready to urls whitelisting 2016-09-10 17:24:42 +04:00
igorklopov
ea78f87b33 tryDirectly to fetch asset without touching api endpoints 2016-09-10 16:55:05 +04:00
igorklopov
4b01852eb7 downloadUrl and browser_download_url 2016-09-10 16:13:12 +04:00
igor
4b77bf3f51 treat request errors as expected 2016-09-10 12:55:48 +03:00
igorklopov
cc98361ace disabled code is also worth renaming 2016-09-09 23:40:15 +04:00
Igor Klopov
1af920ae67 consider legacy name 2016-09-09 20:19:45 +03:00
Leo Lamprecht
3bb0459ea2 Replace OSX with macOS 2016-09-09 19:38:48 +03:00
igor
27b009d0b7 disabling osx-x86 was a bad idea 2016-09-05 21:56:38 +03:00
igor
c736d7cd96 since we use console.log here, switch the stream to process.stderr 2016-09-04 23:58:30 +03:00
Igor Klopov
b9932de4dc indicate what file was not found 2016-09-04 18:37:14 +03:00
Igor Klopov
d266fb9509 use non-modified values in error messages 2016-09-04 18:15:13 +03:00
Igor Klopov
c965ffe7fd stop when incompatible platform or unknown arch 2016-09-04 16:09:48 +03:00
igorklopov
e1b07b28e2 use tag instead of version for localPlace 2016-09-04 08:20:31 +00:00
Igor Klopov
9d9fdfce15 +TODO 2016-09-03 20:46:08 +03:00
Igor Klopov
d710644c16 quickly fetch tagged non-draft release 2016-09-03 18:38:31 +03:00
Igor Klopov
88fac420cb skip osx-x86 - fixes #2 2016-09-03 18:13:38 +03:00
Igor Klopov
af335bce0a tagFromVersion - fixes #3 2016-09-03 18:00:49 +03:00
igorklopov
995cad5085 fix handling of wasReported in upload.js 2016-09-02 09:19:32 +03:00
igorklopov
d83614ee67 one more fix for progress bar 2016-09-01 16:49:43 +03:00
igorklopov
a5536ca3b8 more fixes for downloaded/built #1 2016-09-01 15:16:09 +03:00
igorklopov
ccb5e9c9e7 latest is also a possible value for nodeRange 2016-09-01 13:46:05 +03:00
igorklopov
c327d0e777 expand ~/.pkg-cache to show user full path 2016-09-01 11:38:02 +03:00
igorklopov
e2d4b88481 v6-osx-x64 -> node6-osx-x64 - fixes #4 2016-09-01 11:28:53 +03:00
igorklopov
349d41954d distinguish built and downloaded binaries. fixes #1 2016-09-01 10:47:29 +03:00
igorklopov
2ec1425c6f dont show stack for network errors 2016-09-01 10:45:21 +03:00
igorklopov
4b526556ae make use of wasReported 2016-09-01 10:21:01 +03:00
igorklopov
14c3d97343 dont show '100%' if download was broken half-way 2016-09-01 10:05:58 +03:00
igorklopov
42c7f8c2df fixes for log ported from pkg 2016-09-01 10:05:35 +03:00
igorklopov
e071d46c5f forgot shebang to make cli work 2016-08-31 09:02:52 +03:00
igor
173582c0f6 update repo name 2016-08-30 22:20:50 +03:00
igorklopov
382af893a4 no defaults for nodeRange/platform/arch + improvement for log 2016-08-22 16:54:49 +03:00
igorklopov
75f2a237a9 reexpose system, implement getKnownPlatforms 2016-08-22 13:42:12 +03:00
igorklopov
3b6e89d715 regard { errors: [ { code: "already_exists } ] } 2016-08-21 21:48:03 +03:00
igorklopov
7290e9918f if upload crashes, let it continue making binaries 2016-08-21 16:33:23 +03:00
igorklopov
290f3f9ecb throw an error if there is a message 2016-08-21 16:16:47 +03:00
igorklopov
dacf3732e5 logging is also covered with tests 2016-08-19 12:00:53 +03:00
igor
d134d43915 report early if we dont have github data set up 2016-08-18 23:54:31 +03:00
igor
7308d7be94 paint warning and error log messages 2016-08-18 23:53:40 +03:00
Whiskey
52c88e5f43 messages 2016-08-18 23:05:23 +03:00
Igor Klopov
79bf1efea8 finally ui looks similar to now 2016-08-18 22:29:50 +03:00
Igor Klopov
2f98a07fed make cli less chatty 2016-08-18 22:29:28 +03:00
Igor Klopov
4fab7ba150 simplified options to need. now only forceDownload and forceBuild 2016-08-18 20:21:05 +03:00
Igor Klopov
ef69cb2760 finished thresholds 2016-08-18 20:20:18 +03:00
igorklopov
565fab253a rewritten spawn to show last 30 lines if error happens 2016-08-17 18:51:21 +03:00
igorklopov
572a1a9ec9 cloning bare repo to save time on checking out head 2016-08-17 16:22:17 +03:00
igorklopov
0751ce466c moved thresholds to separate file 2016-08-17 12:09:33 +03:00
igorklopov
a3f88a25cc minor fixes of cloning ui 2016-08-17 11:32:22 +03:00
igorklopov
7282ea5f3b unixThresholds [wip] 2016-08-16 19:36:52 +03:00
igorklopov
18127b4526 drop gauges and switch to toplevel showProgress 2016-08-16 20:31:52 +04:00
igorklopov
307ebd314c fix: Error: EEXIST: file already exists 2016-08-16 20:23:02 +04:00
igorklopov
9f56a367a1 bugfix - receiving objects, resolving deltas 2016-08-16 20:02:20 +04:00
igorklopov
05d84b73b5 finished windows thresholds 2016-08-16 18:40:08 +03:00
igorklopov
3d4df1dfef gauge-based progress wrapper for spawn 2016-08-16 17:41:33 +03:00
igorklopov
2349363917 reimplemented promised spawn 2016-08-16 17:15:34 +03:00
igorklopov
26e597a458 gauge of cloning progress 2016-08-16 15:41:46 +03:00
igorklopov
4a5c11396f moved gauge from index.js to cloud.js 2016-08-16 12:18:22 +03:00
igorklopov
322eb8b48c extract git clone out of build 2016-08-16 11:31:17 +03:00
igorklopov
3a1d926654 prepare build for onProgress 2016-08-16 11:27:23 +03:00
igorklopov
a87ae3dc8a make use of npmlog progress bar to indicate download progress 2016-08-15 18:23:41 +03:00
igorklopov
6cbf443841 github requests timeout 2016-08-15 17:48:18 +03:00
igorklopov
ae00c2f1df trying to switch to npmlog cause it has levels and gauges oob 😋 2016-08-15 16:18:18 +03:00
igorklopov
586af11d9a little more verbose than silence 2016-08-15 15:13:13 +03:00
igorklopov
649b0af51d xcompilation warnings must be in pkg. here anything may be downloaded 2016-08-15 14:41:04 +03:00
igorklopov
a3892fa67b minimalistic cli 2016-08-15 14:40:10 +03:00
igorklopov
ceec807feb finally build from source if nothing was found 2016-08-15 13:52:36 +03:00
igorklopov
a2519284d0 download to temporary file first. then move to it's place 2016-08-15 13:49:51 +03:00
igorklopov
314ef35360 cloud.js to contain download and upload 2016-08-15 12:47:33 +03:00
igorklopov
6398d7509c tolerate if no release or asset 2016-08-15 12:17:50 +03:00
igor
b6db0dd867 eslint -> klopov-eslint. it's like standard but more strict 2016-08-14 15:07:15 +03:00
igor
2177022de9 downloadAsset, download, dontTakeLocal, dontDownload, dontBuild 2016-08-14 12:56:29 +03:00
igor
6fa0ca2ace if no username, then no auth. otherwise no auth mechanism defined 2016-08-14 09:22:34 +03:00
Igor Klopov
bdc943a57c checks if local cache file is already present 2016-08-13 20:27:56 +03:00
Igor Klopov
3a3526a869 using single promisified fs source 2016-08-13 20:23:04 +03:00
Igor Klopov
8e8f9e6ae9 default values 2016-08-13 19:12:35 +03:00
Igor Klopov
be5494a575 error about crosscompilation + distilling nodeVersions 2016-08-13 19:09:23 +03:00
Igor Klopov
f958ae2129 any opt can be undefined, hence opts destructuring 2016-08-13 18:52:18 +03:00
Igor Klopov
77291975d5 there will be no upload without build. so just upload.js 2016-08-13 18:40:51 +03:00
Igor Klopov
bffa650700 abi -> hostAbi to be symmetric with recent changes 2016-08-12 22:54:48 +03:00
Igor Klopov
2a1ac6cb39 platform -> hostPlatform because there will be targetPlatform 2016-08-12 22:52:54 +03:00
Igor Klopov
87c8b646eb target -> targetArch because there will be targetPlatform 2016-08-12 22:48:37 +03:00
Igor Klopov
d57cd94f78 avoid var in favor of const and let 2016-08-12 22:42:58 +03:00
Igor Klopov
85690b012d allocates a unique directory in /tmp for building purposes 2016-08-12 22:33:00 +03:00
Igor Klopov
28abf5fa75 bugfix 2016-08-12 20:07:31 +03:00
igorklopov
3da49f160a abiToNodeRange 2016-08-12 16:07:57 +03:00
igorklopov
44318e2273 knownArchs of course 2016-08-12 15:43:01 +03:00
igorklopov
b909219c7d index.js + test for system.js 2016-08-12 15:40:37 +03:00
igorklopov
0e8e6ecd86 export getFancyArch and getFancyPlatform 2016-08-12 15:27:04 +03:00
igorklopov
742f6fe3bb use fancy platform names win and osx 2016-08-12 15:20:15 +03:00
igorklopov
10e71440b8 getKnownTargets 2016-08-12 15:11:11 +03:00
igorklopov
a48642e49a clarified overlapping terms: arch, host, target 2016-08-12 15:07:25 +03:00
igorklopov
c2a458c544 test for build-and-upload 2016-08-12 14:22:32 +03:00
igorklopov
06115c0f1d expose main to run it from tests 2016-08-12 13:50:03 +03:00
igorklopov
e9e94605ea wrap copyFile to object to be able to mock it in tests 2016-08-12 13:24:37 +03:00
igorklopov
7c30b0e3b4 extract spawn to separate file to be able to mock it in tests 2016-08-12 11:32:26 +03:00
igorklopov
e86c97b4e1 lib dir will be a source of transpilation, so move all es7 there 2016-08-12 11:24:31 +03:00
igorklopov
387b576b93 fixed a typo 2016-08-11 18:28:53 +00:00
igorklopov
ed94d0f239 { message: 'Bad credentials', ... } 2016-08-11 18:26:27 +00:00
igorklopov
4c3a6df890 switched from aws to github releases 2016-08-11 12:45:23 +03:00
igorklopov
977398cf0d finished uploading via aws s3 2016-08-10 20:45:26 +03:00
igorklopov
22217fe36e build fn is localPlace-agnostic and receives copyDest option 2016-08-10 16:14:21 +03:00
igorklopov
815822b667 moved binary templates to places.json + added aws-sdk 2016-08-10 15:58:27 +03:00
igorklopov
e4f39b1112 expands getTargets x64->x64,x86 2016-08-10 14:17:53 +03:00
igorklopov
1a74716c25 localPath -> localPlace 2016-08-10 14:13:59 +03:00
igorklopov
166171f304 erase temporary buildPath after compilation 2016-08-10 14:11:49 +03:00
igorklopov
6a7377c231 separate script file to build-and-upload 2016-08-10 14:11:03 +03:00
igorklopov
5ab131703c async function build (nodeVersion, target) 2016-08-10 13:59:34 +03:00
igorklopov
38ac05233e copies compiled binaries to ~/.pkg-cache 2016-08-10 13:27:28 +03:00
igorklopov
5a2ab2f401 returns the path of produced binary 2016-08-10 11:51:56 +03:00
igorklopov
d28fd16c4a async function compileOnWindows, compileOnUnix 2016-08-10 11:47:39 +03:00
igorklopov
935385efdd const nodePath = path.join(buildPath, 'node'); 2016-08-10 11:19:26 +03:00
igorklopov
4dc897b3da compiles on windows 2016-08-10 11:16:24 +03:00
igorklopov
df72d8473e applies patches and compiles (for non-win yet) 2016-08-10 10:42:49 +03:00
igorklopov
253b06bc04 list of possible targets out of current host (x64,x86 out of x64) 2016-08-09 18:31:04 +03:00
igorklopov
8d5c61d3fc cycle through available nodeVersions/patches 2016-08-09 18:24:47 +03:00
igorklopov
f1e6ae63c4 system.js, places.js, patches.json 2016-08-09 18:00:46 +03:00
igorklopov
00f10ab2e3 scripts.build - clones node and resets to version 2016-08-09 18:00:27 +03:00