Commit Graph

513 Commits

Author SHA1 Message Date
Kevin Sawicki
97b742cb1d Add initial lintian overrides 2014-09-23 12:19:54 -07:00
Kevin Sawicki
0be03c8d9c Copy LICENSE.md to /usr/share/doc/atom/copyright 2014-09-23 12:19:54 -07:00
Kevin Sawicki
0bdddc955f Remove executable bit from .node files 2014-09-23 12:19:54 -07:00
Kevin Sawicki
c178ac3aa6 Run dpkg-deb using fakeroot 2014-09-23 12:19:54 -07:00
Kevin Sawicki
6b23479c3f Use FILE_MODE variable 2014-09-23 12:19:54 -07:00
Kevin Sawicki
c4e3b76070 Quote deleted directory 2014-09-23 12:19:53 -07:00
Kevin Sawicki
8dcd454401 Remove token logging 2014-09-12 13:22:15 -07:00
Kevin Sawicki
3a2c155afc Log token 2014-09-12 13:22:15 -07:00
Kevin Sawicki
a1e177c7dc Set ATOM_ACCESS_TOKEN 2014-09-12 13:22:14 -07:00
Kevin Sawicki
735d1a912e Log debug output 2014-09-12 13:22:14 -07:00
Kevin Sawicki
e060d0b562 Add initial Linux CI build script 2014-09-12 13:22:14 -07:00
Kevin Sawicki
c72ce45820 Log installed node version 2014-09-12 13:22:14 -07:00
Kevin Sawicki
04cc11fa81 Don't read env var files on Linux 2014-09-12 13:22:14 -07:00
Kevin Sawicki
f14ad99558 Remove linux check 2014-09-12 13:22:14 -07:00
Alessandro Bahgat
cda8382902 🐧 Set file mode to 755 to directories created for mkdeb. 2014-08-15 13:41:42 -04:00
Kevin Sawicki
9f9ca0a2cf Don't dedupe node-gyp
npm has hard-coded paths to it so it can't be moved up.
2014-07-23 10:45:21 -07:00
Kevin Sawicki
3326cf357f Dedupe semver in apm 2014-07-23 10:11:03 -07:00
Kevin Sawicki
9c78b9832b Dedupe node-gyp in apm 2014-07-23 10:11:02 -07:00
Kevin Sawicki
2fe647c950 Store atom-shell cache in ~/.atom/atom-shell
There were several CI failures today where it seemed like the
atom-shell version in the temp directory wasn't complete, it was
missing many files causing the build to fail when the specs were
run.

What made this worse was that running script/clean on these machines
didn't clean out these bad versions since the temp directory was different
when run via Jenkins vs. ssh'ing into the machines so the folders were
left there and the builds kept failing.

Atom already stores the compile cache to ~/.atom as well as the node cache
so putting atom-shell there as well keeps things consistent.
2014-07-22 17:44:41 -07:00
Kevin Sawicki
b11accec6d 📝 Doc --arch=ia32 flag 2014-07-10 17:28:21 -07:00
Kevin Sawicki
8d4be6ab57 Install apm in 32-bit mode on Windows CI 2014-07-10 17:28:21 -07:00
Kevin Sawicki
3402c8dcd1 Dedupe request in apm folder
This prevents long path issues on Windows
2014-07-10 11:47:02 -07:00
Kevin Sawicki
4bb7e0f323 === not !== for no-quiet check 2014-07-02 13:55:58 -07:00
Kevin Sawicki
7b09fc04da Don't ignore stdout when --no-quiet is set 2014-07-02 13:51:52 -07:00
Kevin Sawicki
1090746cb1 Add --no-quiet option to script/bootstrap
This will run apm/npm commands without the --quiet flag to get more
output on failures.
2014-07-02 13:46:12 -07:00
Kevin Sawicki
4bade1c976 💄 2014-06-13 15:40:46 -07:00
Kevin Sawicki
858e7b62a3 Remove logging 2014-06-13 15:25:13 -07:00
Kevin Sawicki
28015339d9 Add some logging 2014-06-13 15:19:20 -07:00
Kevin Sawicki
ca86e0258f Only log error code 2014-06-13 15:12:06 -07:00
Kevin Sawicki
87fcc39045 Add missing path segment 2014-06-13 15:11:16 -07:00
Kevin Sawicki
b78ff8c3a9 Load atomcredentials on Windows 2014-06-13 15:05:36 -07:00
Kevin Sawicki
34be92b5b0 Log message for all commands
The first time you bootstrap, all the build modules and apm are
installed. Previously this was showing no output so it was unclear
whether things are hung or now.

This will also help easily identify which stage of the build
npm and node-gyp errors are occurring.
2014-06-13 10:06:45 -07:00
Corey Johnson
01b4ff24b9 Dedupe grim 2014-06-11 16:50:45 -07:00
Kevin Sawicki
31cf907b48 💄 2014-06-10 16:54:25 -07:00
James R Sconfitto
f5a70da6f0 🏁 Use "npm.cmd" to verify npm 2014-06-10 17:26:57 -04:00
Kevin Sawicki
fe088ba16a Use local npm version when available 2014-06-10 11:45:47 -07:00
Kevin Sawicki
634c995a71 Verify npm version
This will end up in log output when people report build issues and now
the bootstrap will error when the npm version is <1.4.
2014-06-10 11:05:29 -07:00
Kevin Sawicki
389b5c7891 Remove script/install-cli
The CommandInstaller class now has native module dependencies that are
compiled with apm so invoking it directly from node is no longer possible.

This can still be done using the grunt install task.

Closes #2555
2014-06-09 11:02:26 -07:00
Cheng Zhao
35c2ef09a0 Support generating i386 deb file. 2014-06-07 14:09:03 +08:00
Kevin Sawicki
f31cc1b0da Return early when skipping remove command 2014-06-06 08:58:34 -07:00
Kevin Sawicki
3b6711d83d Only spawn removed command for paths that exist
Prevents errors being logged when trying to remove folders that
don't exist on Windows.
2014-06-06 08:56:13 -07:00
Radu Micu
8e6dcf43b0 better script/clean removal for windows
Now `script/clean` uses `del /F /Q /S` to cleanup the folders but `del /S` deletes specified files from all subdirectories, so if we pass a folder as a parameter it will only delete the files within the folder and all subfolders recursively but not the actual folders. And this can cause problems, see Issue #2487

A better way is to use `rmdir /S /Q` as it takes care of the folder itself and it's contents.
/S - removes all directories and files in the specified directory in addition to the directory itself. (removes the directory tree)
/Q - obvious this is quite mode

I tested this approach on a couple machines that needed a clean before building and works OK with `rmdir`. It might give a warning in the console like `The system cannot find the file specified.` because not all of them are there but it can be ignored as the script will finish running.
2014-06-06 11:26:43 +01:00
Kevin Sawicki
0c0f143f91 Only print python version when checked 2014-06-05 08:53:02 -07:00
onkrot
c1ce1e624d Changing mkdeb script 2014-06-05 09:29:01 +06:00
Corey Johnson
c167166add Merge pull request #2457 from atom/cj-add-python-check
Create requirement verifier for script/bootstrap
2014-06-04 14:43:30 -07:00
probablycorey
fbcb152107 Reorder if/else check 2014-06-04 14:07:59 -07:00
probablycorey
51183f4be5 Use process.exit 2014-06-04 13:14:00 -07:00
probablycorey
2e5c844d46 Use childProcess directly 2014-06-04 12:44:51 -07:00
probablycorey
0b088e8b72 💄 2014-06-04 12:34:18 -07:00
probablycorey
1479197ffb Add better python error message 2014-06-04 12:32:14 -07:00
probablycorey
c79c7b7a98 Make all verify requirements methods take callbacks
This moves the error handling to bootstrap and also allows us to 
display a success message.
2014-06-04 12:16:16 -07:00
probablycorey
3ead596a5d Assume the PYTHON env points to python.exe 2014-06-04 11:44:52 -07:00
probablycorey
99af9e2c33 Update error messages 2014-06-04 11:10:14 -07:00
probablycorey
b7bd11a883 Reuse pythonExecutable variable 2014-06-04 11:09:50 -07:00
probablycorey
1ac40b2673 Mimic Atom’s if/else style convention 2014-06-04 10:55:10 -07:00
probablycorey
5434a26636 Rename postVerification method to bootstrap 2014-06-04 10:53:05 -07:00
James R Sconfitto
3f8d7d54cf 🏁 Verify python version for build
References:
56dcb88909/lib/configure.js
2014-06-03 22:20:33 -04:00
Kevin Sawicki
6e1efdf2ee Check for that grunt command exists before spawning 2014-06-03 12:10:37 -07:00
probablycorey
57531d75fe Add better python path description 2014-05-30 11:01:22 -07:00
probablycorey
0fdceb8474 Update bootstrap requires 2014-05-30 09:36:29 -07:00
probablycorey
041ec8c7cf Use verifyRequirements in script/bootstrap 2014-05-30 09:31:53 -07:00
probablycorey
07e64152be Add verify-requirements util 2014-05-30 09:31:42 -07:00
Kevin Sawicki
5f359a4271 💄 2014-05-28 18:36:42 -07:00
Kevin Sawicki
ae1dd6e876 Add missing comma 2014-05-28 18:31:20 -07:00
Kevin Sawicki
d1bd2113bf Install npm into build/ folder 2014-05-28 18:30:27 -07:00
Corey Johnson
b9753a0785 Force npm to be installed on cibuilds 2014-05-27 10:34:11 -07:00
probablycorey
6f0882a098 Merge remote-tracking branch 'origin/master' into cj-windows-build-instructions-update
Conflicts:
	docs/build-instructions/windows.md
2014-05-20 09:51:08 -07:00
Pritam Baral
25d2206471 Consolidate redundant code 2014-05-19 23:57:48 +05:30
Pritam Baral
f5c3bdb845 Use os.tmpdir() on Linux
/tmp isn't always available, is on precious RAM-backed fs or simply not
what the user has set his $TMPDIR to. According to the specification, we
should use $TMPDIR, which node lets us find through os.tmpdir().

Also, contributing.md isn't in favour of using platform-dependent code.

This commit focusses only on Linux, and leaves OS X as is with /tmp for
discussion.
2014-05-19 23:57:48 +05:30
Kevin Sawicki
a83a6e5127 Explicitly set permissions on temp folder
Refs #2129
2014-05-16 14:47:55 -07:00
Kevin Sawicki
7f442d045b Check for errors in script/mkdeb
Refs #2129
2014-05-16 12:54:24 -07:00
Corey Johnson
f30c56c237 Don't require 32bit node 2014-05-15 14:55:58 -07:00
Corey Johnson
bb9d67a1b1 Merge remote-tracking branch 'origin/master' into cj-windows-build-instructions-update
Conflicts:
	script/bootstrap
2014-05-15 14:34:07 -07:00
Corey Johnson
a2be86d15a Require fs in bootstrap 2014-05-14 15:42:05 -07:00
Corey Johnson
0b5b741db4 Make sure python2.7 is installed on win32
Closes #2193 
Closes #2167
Closes atom/node-runas#5
2014-05-14 15:29:21 -07:00
Corey Johnson
aeac32ae47 Ensure that node is 32bit on win32 2014-05-14 14:49:35 -07:00
Corey Johnson
3a8ddc0cd6 Merge pull request #1977 from 1ace/patch-1
Is atom really incompatible with the newer version of nodejs?
2014-05-13 17:33:40 -07:00
Eric Engeström
9302242299 Allowing node > 1.0 (no reason not to already do that, I guess) 2014-05-09 00:45:13 +02:00
Eric Engeström
ed90a78ea5 Replacing string comparison with actual int comparison 2014-05-09 00:42:40 +02:00
Kevin Sawicki
44f19610b6 Add grunt.cmd 2014-05-06 17:03:19 -07:00
Eric Engeström
2ff5309d54 Allow newer version of nodejs 2014-05-07 00:00:44 +02:00
Kevin Sawicki
806ff4e141 Resolve path to apm
Refs #1936
2014-05-06 09:56:03 -07:00
Kevin Sawicki
e8090b16f3 Move apm version to apm/package.json 2014-04-24 15:43:35 -07:00
Kevin Sawicki
950964eee3 Remove directory that no longer exists 2014-04-24 15:43:35 -07:00
Kevin Sawicki
8f2cdae0eb Install apm from npmjs.org 2014-04-24 15:43:35 -07:00
Kevin Sawicki
fea958c8e4 Clean ~/.atom/compile-cache 2014-04-17 18:32:22 -07:00
Cheng Zhao
893a3f63dd 🐧 Add arch in the deb package. 2014-04-02 14:26:29 +08:00
Cheng Zhao
2da9ee0cee 🐧 Add icon file in deb package. 2014-03-25 15:41:00 +08:00
Cheng Zhao
9c070cd71d 🐧 Add desktop file. 2014-03-25 15:40:59 +08:00
Cheng Zhao
6f068f14fd Do not hard code build dir. 2014-03-25 15:40:59 +08:00
Cheng Zhao
67d8db8b9a 🐧 Add mkdeb task to create debian package. 2014-03-25 15:40:59 +08:00
Cheng Zhao
645fc1511a Do not add parameter in shebang string.
On Linux "#!/usr/bin/env node --harmony_collections" is unfortunately
not recognized by system.
2014-03-25 15:40:43 +08:00
Nathan Sobo
65ff108615 Warn and exit if script/bootstrap is run with wrong node version 2014-03-20 13:05:49 -06:00
Kevin Sawicki
f912eb805d Add npm as build dependency
This switches script/bootstrap to use a locally installed npm so that
the version of npm being used to bootstrap apm is now managed in
build/package.json instead of whatever version is installed globally on the
machine running script/bootstrap.

Closes #1770
2014-03-19 08:41:08 -07:00
Kevin Sawicki
f1b0390b9b Remove apm from node_modules 2014-03-04 17:26:52 -08:00
Kevin Sawicki
71abe66b8f Put npm cache in ~/.atom/.npm 2014-03-04 10:19:20 -08:00
Kevin Sawicki
01eb6e31ba Revert "Set --ca to null on the command line"
This reverts commit 7f4c8023aee10ded0088076773c6c13f92993aab.
2014-03-04 10:19:20 -08:00
Kevin Sawicki
071e6f885f Set --ca to null on the command line 2014-03-04 10:19:20 -08:00
Kevin Sawicki
5fcde96f88 Add .npmrc file with default ca value 2014-03-04 10:19:20 -08:00
Kevin Sawicki
d8e314b0a0 Upgrade apm to include bundled node 2014-03-03 12:43:01 -08:00
Kevin Sawicki
d660e9a066 Go back to strict-ssl false 2014-02-28 10:01:54 -08:00
Kevin Sawicki
abcaaa3264 Try single quotes for empty ca arg 2014-02-28 09:53:39 -08:00
Kevin Sawicki
7f2b871885 Use known list of registrars 2014-02-28 09:43:38 -08:00
Kevin Sawicki
e51dd05989 Disable strict-ssl for now on janky machines
This is until we can get npm upgraded there.
2014-02-28 09:33:18 -08:00
Kevin Sawicki
3434a68ac0 Only use token to download grunt-download-atom-shell 2014-02-25 19:55:19 -08:00
Kevin Sawicki
9a941b97cb Use new atom-bot token 2014-02-25 19:52:59 -08:00
Corey Johnson
ddc7ebb576 Revert "Make master ci output verbose"
This reverts commit b1492037d5.
2014-02-25 15:59:20 -08:00
Corey Johnson
b1492037d5 Make master ci output verbose 2014-02-25 14:45:26 -08:00
Kevin Sawicki
0dce31e02d Don't dedupe nan 2014-02-17 15:26:40 -08:00
Kevin Sawicki
e4a65ca810 Convert update octicons from script to grunt task 2014-02-03 14:15:08 -08:00
Kevin Sawicki
d79d819048 Dedupe fs-plus and season 2014-01-31 14:09:19 -08:00
Kevin Sawicki
1550511e54 Write octicon codes to variables folder 2014-01-28 10:06:40 -08:00
Cheng Zhao
d931299b9f Create shortcut on Desktop. 2014-01-24 21:55:49 +08:00
Cheng Zhao
b1778aa7df Use administrator power to install Atom on Windows. 2014-01-24 21:07:32 +08:00
Corey Johnson
6d4f532a32 Merge pull request #1464 from atom/cj-cli-install
Make CLI installation easier.
2014-01-23 12:40:57 -08:00
probablycorey
d2e4c61e0b Make cli installation work with install-cli script 2014-01-22 15:56:05 -08:00
Cheng Zhao
cf4e08cdc0 Fix executing grunt under Windows. 2014-01-22 23:10:44 +08:00
Kevin Sawicki
677ec44b37 Dedupe humanize-plus 2014-01-16 18:54:58 -08:00
Kevin Sawicki
4122b5a43f Dedupe nan module 2014-01-15 16:58:43 -08:00
Kevin Sawicki
2d04c50184 Dedupe oniguruma 2014-01-15 16:24:30 -08:00
Kevin Sawicki
f86ca9b59a 💄 Add array of packages to dedupe 2014-01-15 15:48:19 -08:00
Kevin Sawicki
58cccd76a4 Dedupe roaster when bootstrapping 2014-01-15 15:48:19 -08:00
Kevin Sawicki
f4b82fe3a4 Load env vars from /var/lib/jenkins/config/xcodekeychain 2014-01-14 13:29:34 -08:00
Kevin Sawicki
aec32b65a0 Remove constructicon files 2014-01-14 13:29:34 -08:00
Kevin Sawicki
b72028c68d Invoke deploy task using script/grunt 2014-01-14 10:03:05 -08:00
Kevin Sawicki
d3a016bf69 Delete build/node_modules before bootstrapping 2014-01-14 09:43:03 -08:00
Kevin Sawicki
12bf0f5381 Delete apm's node_modules folders on clean 2014-01-13 14:51:24 -08:00
Kevin Sawicki
02dfe074e6 Spawn grunt path directly 2014-01-03 15:17:55 -08:00
Kevin Sawicki
5e2e5a4b58 Use same grunt path in script/build and script/cibuild 2014-01-03 09:29:45 -08:00
Kevin Sawicki
344d237a42 Remove ~/.atom outside of tasks 2014-01-03 09:26:04 -08:00
Kevin Sawicki
04eef20c84 Use fs-plus instead of rimraf directly 2014-01-03 09:15:31 -08:00
Kevin Sawicki
18f2f5f821 Add script/grunt 2014-01-03 08:32:24 -08:00
Kevin Sawicki
7f2e0e2317 Add back window .cmd suffix 2014-01-03 08:32:24 -08:00
Kevin Sawicki
167e6dc1bf Convert upload-release script to a grunt task 2014-01-03 08:32:24 -08:00
Kevin Sawicki
9bc24b8736 Add missing comma 2014-01-03 08:32:23 -08:00
Kevin Sawicki
401ef87bb2 Clean build/node_modules folder 2014-01-03 08:32:23 -08:00
Kevin Sawicki
0c5ed1eee4 Run grunt from build folder 2014-01-03 08:32:23 -08:00
Kevin Sawicki
790c227924 Add back comment 2014-01-03 08:32:23 -08:00
Kevin Sawicki
70c14eb4f5 Move tasks to build directory 2014-01-03 08:32:23 -08:00
Kevin Sawicki
e187604942 Run grunt from tasks folder 2014-01-03 08:32:22 -08:00
Kevin Sawicki
601466782f Install build dependencies in tasks/node_modules 2014-01-03 08:32:22 -08:00
Kevin Sawicki
902406c572 Enable harmony collections in all scripts 2013-12-31 14:40:45 -08:00
Matt Colyer
4d643242a1 Don't upload the release on windows 2013-12-18 11:43:34 -08:00
Matt Colyer
e974e61012 Remove logging 2013-12-18 11:36:26 -08:00
Matt Colyer
1ce4f3c552 More debugging 2013-12-18 11:19:26 -08:00
Matt Colyer
3ac2cae355 More debugging 2013-12-18 11:17:00 -08:00
Matt Colyer
2ffa989ba4 Add a missing comma 2013-12-18 11:12:38 -08:00
Matt Colyer
341454cd81 Dont use console 2013-12-18 11:11:27 -08:00
Matt Colyer
4507981f2a Fix logging 2013-12-18 11:07:46 -08:00
Matt Colyer
14f2444883 Add debugging 2013-12-18 11:03:21 -08:00