Commit Graph

84 Commits

Author SHA1 Message Date
Justin SB
96bccec0ac Throttle yields, so we don't slow down in case of rapid calls to yield
This restores the behavior I lost when I removed Patience
2014-10-09 15:48:40 -07:00
Slava Kim
497af45dd8 Whitespace 2014-10-06 23:27:07 -07:00
David Glasser
94ab470b2f fix test-packages and clarify utils.parseUrl docs 2014-10-06 21:18:51 -07:00
David Glasser
7890b14e4e Allow dots in pre-release tag in release versions
We started calling our releases 0.9.3.1-rc.0 to match what you need to
do in semver to get proper numeric comparisons; let's make sure to
create orderKeys that work with them.
2014-10-06 17:01:51 -07:00
Sashko Stubailo
94074d5972 Very carefully handle all of the different cases for servers and ports
1. mobile-server passed
2. running on device
3. running on simulator
2014-10-03 21:06:22 -07:00
David Greenspan
9922283515 Disable progress bar when prompting
Can’t tell for sure if it works, but it ought to
2014-10-03 14:51:22 -07:00
Emily Stark
3069788e01 Rework --mobile-server defaults.
* --port now requires a port ('meteor run --port example.com' isn't valid).
* --mobile-server defaults to your detected IP address and the port from
    --port.
* If you provide a value for --mobile-server, we default to http:// as
  the protocol. A host is required for --mobile-server if you don't omit
  the option entirely. Similar for the --server argument to 'meteor
  build'.

This commit includes the 'netroute' npm module as a core package (which
has binary dependencies) for IP detection. It would be nice to put it in
packages/non-core, but I think it has to be a core package in order to
uniload it.
2014-10-03 12:11:44 -07:00
Justin SB
21adbca461 Check the AVD exists, create if not, launch using android-launch 2014-10-01 18:33:43 -07:00
Justin SB
90a24c9bd8 Check for meteor avd 2014-10-01 15:18:38 -07:00
Emily Stark
c5fdf45568 Rename 'parseHostPort' to 'parseUrl' and add tests 2014-09-29 17:53:00 -07:00
Emily Stark
257de8a62e WIP: '--mobile-port' to '--mobile-server', and allow https 2014-09-29 17:53:00 -07:00
Slava Kim
573f8462e5 Improve Android logs filtering 2014-09-23 15:46:58 -07:00
ekatek
18ffeafe20 start patience messages on a new line 2014-09-19 19:42:01 -07:00
ekatek
a4bc4c16e8 search should show RC packages optionally; sort alphabetically on lists 2014-09-14 19:09:37 -07:00
ekatek
7af9519dc4 bettter message about experimental package versions 2014-09-10 16:17:25 -07:00
ekatek
390b6394b5 strip out extra dependencies on semver in tool 2014-09-10 15:53:23 -07:00
Matthew Arbesfeld
75427d70ce Merge branch 'devel' into cordova-hcp
Conflicts:
	docs/client/docs.js
	examples/leaderboard/.meteor/versions
	meteor
	packages/backbone/package.js
	packages/constraint-solver/package.js
	packages/meetup/package.js
	packages/meteor-tool/package.js
	packages/showdown/package.js
	packages/stylus/package.js
	scripts/admin/meteor-release-experimental.json
	tools/commands-packages.js
	tools/commands.js
	tools/project.js
	tools/tests/old/app-with-private/.meteor/versions
	tools/tests/old/app-with-public/.meteor/versions
	tools/tests/old/empty-app/.meteor/versions
2014-08-27 13:38:57 -07:00
Slava Kim
beb5b95312 Run adb logcat -c asynchronously
so we can print out errors and timeout the operation. Should help in case of
having more than 1 device or emulator open or having an emulator from a wrong
enviornment being open and confusing the user.
2014-08-25 15:40:52 -07:00
David Glasser
e36c4184ab fix old bundler test failure 2014-08-21 17:46:51 -07:00
David Glasser
5d5d1876da De-dup package name/constraint parsing code
Now we can all any of them from even before uniload is ready in the tool

I <3 symlinks
2014-08-21 17:00:21 -07:00
David Glasser
5bc415c51a Improve package name/version parsing errors
We now throw more specific errors, consistent between both tools and
package-version-parser (copy-and-pasted code, sadly, but we really do
have to make this check before uniload-from-checkout).
2014-08-21 16:21:12 -07:00
ekatek
c89ff1fa25 check to make sure package names don't start with a dot 2014-08-21 13:49:36 -07:00
Matthew Arbesfeld
df38c100a9 Merge branch 'release-0.9.0' into cordova-hcp
Conflicts:
	tools/commands-packages.js
	tools/utils.js
2014-08-20 20:57:24 -07:00
David Glasser
0bc445e8d2 Make slow operations more bearable with Patience
Introduces a "Patience" class which lets CPU-bound operations like the
constraint solver yield every so often, and print messages if an
operation (CPU-bound or not) are taken or not.
2014-08-20 15:49:58 -07:00
Matthew Arbesfeld
88ed2422a6 Add --verbose command for 'run and 'test-packages' 2014-08-20 01:23:38 -07:00
Matthew Arbesfeld
66e8f13ea9 Merge branch 'devel' into cordova-hcp
Conflicts:
	meteor
2014-08-13 17:37:05 -07:00
Slava Kim
0abd01b7ee Check for options hash 2014-08-13 17:16:19 -07:00
Slava Kim
9e44f25cf5 Download android_bundle only on actual Android use 2014-08-13 17:15:25 -07:00
David Glasser
4ac78a3646 Move DEFAULT_TRACK to catalog module
It's a constant, so no need to have to think "hmm, I wonder if I should
be writing catalog.official.DEFAULT_TRACK or
catalog.complete.DEFAULT_TRACK?"
2014-08-13 15:39:03 -07:00
Slava Kim
8f30d7779d Extract the android_bundle download logic into a separate code.
+ Refactor parts of async/sync child process calls
2014-08-11 22:53:08 -07:00
Matthew Arbesfeld
289abce37b Remove prefix option from execFileAsync 2014-08-11 19:25:19 -07:00
Matthew Arbesfeld
25b4db225e Add iOS logging 2014-08-11 19:23:34 -07:00
Matthew Arbesfeld
0c062381ee Logging for Android 2014-08-11 18:05:39 -07:00
Sashko Stubailo
f481e66ff1 Merge branch 'bundle-android' into cordova-hcp
Conflicts:
	tools/commands.js
	tools/utils.js
2014-08-11 11:04:25 -07:00
Slava Kim
85a1233a87 Better error messages around adding platforms/plugins 2014-08-08 15:03:52 -07:00
Slava Kim
5d1970dd9d Refactor running emulators for mobile targets and reuse it in test-packages 2014-08-07 16:52:32 -07:00
Sashko Stubailo
522bcd81f6 Merge branch 'devel' into bundle-android
Conflicts:
	tools/utils.js
2014-08-07 11:32:07 -07:00
Matthew Arbesfeld
9f2ee36e60 Merge branch 'packaging' into cordova-hcp
Conflicts:
	packages/constraint-solver/constraint-solver-tests.js
	packages/constraint-solver/constraint-solver.js
	packages/less/plugin/compile-less.js
	packages/meteor/plugin/basic-file-types.js
	packages/star-translate/translator.js
	packages/stylus/plugin/compile-stylus.js
	packages/templating/plugin/compile-templates.js
	packages/webapp/webapp_server.js
	tools/bundler.js
	tools/commands.js
	tools/compiler.js
	tools/package-source.js
	tools/run-app.js
	tools/selftest.js
	tools/tests/old/test-bundler-assets.js
	tools/tests/old/test-bundler-options.js
	tools/unipackage.js
2014-08-06 13:43:56 -07:00
Matthew Arbesfeld
5059a5655d Add run commands 2014-08-06 12:08:48 -07:00
David Glasser
cee6d7401e fix orderKey regexp 2014-07-31 14:12:21 -07:00
David Glasser
26006d53dc Merge branch 'devel' into packaging
Conflicts:
	tools/utils.js
2014-07-30 17:40:44 -07:00
Justin SB
706fc7ebe7 Allow TIMEOUT_SCALE_FACTOR env variable to scale up timeouts for self-test
Particularly for automated tests, where we may run on a slow machine, we need
an escape valve to let us boost the timeouts.  This also allows for a 'tolerant'
test (scale factor 2+?) and a 'strict' test (scale factor 0.5?) etc
2014-07-30 14:37:18 -07:00
Matthew Arbesfeld
72c3df7c89 Only accept exact version of Cordova plugins in packages. 2014-07-23 11:13:15 -07:00
Slava Kim
f278422835 Extract isUrlWithSha to utils
npm and cordova plugins code use it
2014-07-22 13:57:37 -07:00
David Glasser
f52c975de1 Less greedy algorithm for choosing builds
The previous algorithm had the problem that if you had builds

  A = browser+os.linux.x86_64
  B = browser+os.osx.x86_64

available and came in looking for "something that satisfies 'browser'
and 'os.osx.x86_64'", Meteor would happily say:

   "Neato-keen!  'A' satisfies 'browser'.  And 'B' satisfies
    'os.osx.x86_64'!  Hey, that's all I needed!  Let's download
     both 'A' and 'B'!  Hooray!"

when choosing just 'B' would have been good enough.
2014-06-20 18:12:40 -07:00
David Glasser
2e5adc2659 fix autoupdate test
also fixes a bunch of other stuff like:

- parseStack markTop works again (so you get the right line numbers in
  self-test)

- you can (with appropriate env var) run apps with NO PACKAGES at
  all (even ctl)

- more consistently refer to METEOR-CORE@ releases as "Meteor 1.2.3"
2014-06-17 14:26:29 -07:00
David Glasser
286023adfe move getLines from utils to files 2014-06-10 18:09:56 -07:00
David Glasser
a1b3014e36 Implement upgraders and notices
They are the same!
2014-06-10 18:08:50 -07:00
ekatek
ab839d4520 merging changelog changes 2014-06-10 16:57:06 -07:00
ekatek
831967dd60 cleanup of merge 2014-05-28 16:10:29 -07:00