Commit Graph

4311 Commits

Author SHA1 Message Date
Sashko Stubailo
f9906346db Remove WINDOWS-PREVIEW hack
So that there is a recommended release published for Windows

Conflicts:
	tools/utils.js
2015-03-24 17:21:59 -07:00
David Glasser
ab2e629239 Upgrader for Facebook API change. 2015-03-23 14:57:54 -07:00
David Glasser
aa2867b3ea Clean up Cordova app IDs a bit
Starting with cordova-lib 4.2.0 (shipped with Meteor 1.0.4) the cordova
create command checks that app IDs look like Java namespaces.  Clean up
the most obvious ways that our generated app IDs won't look like Java
namespaces (most notably hyphens).

This isn't perfect (eg we don't check for leading digits or
consecutive/leading/trailing dots, or for Java reserved words).  This
check is implemented by the valid-identifier NPM package.

While we're at it, put app ids under `com.meteor.userapps` so that there
are other parts of `com.meteor` available for potential MDG Java work.

Fixes #3950.
2015-03-20 11:11:44 -07:00
Avital Oliver
e95cc58031 Fix publish-for-arch in Windows
We recently changed the package tarball structure to use
colonConverter in package-client.js but not in
commands-package.js
2015-03-18 00:26:38 -07:00
David Glasser
8409919bb6 actually fail on package creation error 2015-03-17 12:14:16 -07:00
David Glasser
cfb21f43e5 Move third-party licenses into subdirectory
This should make them easier to update.
2015-03-17 11:18:57 -07:00
Sashko Stubailo
efdfe62331 Validate number of colons in package name on create
Instead of in the general package version parser
2015-03-17 10:56:33 -07:00
David Glasser
d591a288e1 Fix Android emulator access
Also fix odd use of `false` where everything else used `true`.
2015-03-13 18:49:30 -07:00
Sashko Stubailo
c6ea68f9b3 Make meteor create --package not use prefix
It used to create a directory with an underscore instead of a colon
Now, it just removes the prefix.

In cases where the name of the package has more than one colon or starts or ends
witha colon, we report an error.
2015-03-12 17:57:27 -07:00
David Glasser
031237573a Work around a cordova bug
Fixes #3914.  Fixes self-test 'add cordova plugins'.
2015-03-10 21:48:20 -07:00
David Glasser
52d500e123 Delete "sync local catalog" test
It's been auto-failing for many months. If somebody wants to fix it,
feel free to revert this and fix it, but there's no reason to just
entirely stop self-test --slow from having any hope of passing forever.
2015-03-10 20:54:22 -07:00
David Glasser
adc6d9969c Revert "Add some helpers for testing wrapped text"
This reverts commit 4a6dd52bca.

This made some tests flaky because notSpaceSensitive sometimes (but not
always!) ate the newline after the regexp.

We should just disable word wrapping in processes run by self-test
instead.
2015-03-09 22:30:44 -07:00
David Glasser
0a1dcee43c Show pattern for junk-before too 2015-03-09 22:13:07 -07:00
David Glasser
82e02c4cc4 test: Prevent overlapping meteor calls
They crashed sometimes, because meteor does that.
2015-03-09 18:51:40 -07:00
ekatek
50534fa252 fixing a test
The test is fine, but we were publishing a different version than we checked for.
(That is, we published 1.1.0, and were surprised when 1.0.1 did not show up).
Fixed.
2015-03-09 16:18:45 -07:00
David Glasser
b21aac4c72 fix spacing in deferred reg message 2015-03-09 15:39:22 -07:00
Sashko Stubailo
2288d76db1 Rewrap comment 2015-03-05 21:56:40 -08:00
sashko
4a6dd52bca Add some helpers for testing wrapped text 2015-03-05 21:07:14 -08:00
sashko
e6dd488842 Make addendum not sensitive to line breaks 2015-03-05 20:24:44 -08:00
Sashko Stubailo
71b914a296 Add flushing buffers on process.exit to meteor package 2015-03-05 20:04:58 -08:00
sashko
59a6bef4aa Revert "Fix constraint solver test by removing process.exit"
This reverts commit 18e304b28c.
2015-03-05 19:58:51 -08:00
sashko
c914dc94cf Fix command line test by adding small wait 2015-03-05 19:47:11 -08:00
sashko
18e304b28c Fix constraint solver test by removing process.exit 2015-03-05 19:46:33 -08:00
sashko
627f3be4f8 Fix autoupdate test on Windows 2015-03-05 19:21:48 -08:00
Sashko Stubailo
5c5af8bdff Uncomment empty string argument tests
Add an if statement so that they don't fail on Windows
2015-03-05 18:45:27 -08:00
sashko
3b56565373 Mark cordova tests with appropriate tag 2015-03-05 18:40:31 -08:00
Slava Kim
6a52dd82e2 Uncomment and fix the releases tests on Windows 2015-03-05 17:54:59 -08:00
Slava Kim
7d39f9e796 Uncomment and fix the "Default release track is METEOR@" test for Windows 2015-03-05 17:44:33 -08:00
Slava Kim
759510a584 Bump the tests timeout to fix tests on Windows
Yeah, they are slower on Windows :(
2015-03-05 17:30:20 -08:00
David Glasser
63a0076305 mongo: provide direct access to node driver db
Specifically, Mongo.Collection objects on the server now have
rawCollection and rawDatabase methods.

You can use MongoInternals.NpmModules.mongodb.version to tell what
version of the mongodb npm module is the backend for HTTP.call.  This
version may change incompatibly from version to version of Meteor; use
at your own risk.  (For example, we expect to upgrade from the 1.4.x
series to the 2.x series in the not-too-distant future.)

Fixes #3640.
2015-03-05 17:12:37 -08:00
David Glasser
2b466a9015 Fix yet another self-test broken by d4d349ca96
And make sure that failures are thrown within the actual test itself,
not within a timer, so that failure doesn't crash the whole self-test
process.
2015-03-05 16:45:21 -08:00
sashko
905092d4b5 Improve message 2015-03-05 15:55:44 -08:00
Slava Kim
9187dc2129 Fix one npm self-test on Windows 2015-03-05 15:54:37 -08:00
Sashko Stubailo
98a21446ca Add special directions for killing the server on Windows 2015-03-05 15:49:05 -08:00
David Glasser
63f89e5602 Tell stats server which packages are local
Requires an annoying level of hackery to get the fake-warehouse tests to
pass.

See meteor/package-stats#1.
2015-03-05 13:49:18 -08:00
Sashko Stubailo
85505e1082 Improve messages around missing Windows release 2015-03-04 17:38:05 -08:00
Sashko Stubailo
dac1f96825 Remove extra unneeded code in new admin command 2015-03-04 11:40:51 -08:00
Sashko Stubailo
b73aca8acc Made a useful new command for mangling version numbers 2015-03-04 11:32:57 -08:00
Sashko Stubailo
aa54ba1d13 Tree hash is different on windows and mac
This is very hard to fix for some reason
2015-03-03 22:01:14 -08:00
David Glasser
91a321fa4b Further fixes to self-tests broken by d4d349ca96 2015-03-03 21:35:23 -08:00
David Glasser
484372d3f5 Fix self-test broken by d4d349ca96 2015-03-03 21:09:18 -08:00
David Glasser
9c210f8bcb Fix crash in publish
Specifically, a "no pluginProviderPackageMap on isopack?" error would be
thrown when running publish in the following circumstances:

- You are inside an app (so it uses the app's .meteor/local/isopacks as
  an IsopackCache instead of a temporary directory)
- Your package does not need to be rebuilt (so it gets read in "up to
  date" mode by the IsopackCache)
- Your app has at least one cordova platform (so that
  includeCordovaUnibuild was true on the cached isopack; it is always
  true when building for publish)

In this case, we read the Isopack from disk but didn't keep the
pluginProviderPackageMap that we read from its isopack-buildinfo.json,
which later lead to a crash.

Fixes #3676.
2015-03-03 18:54:53 -08:00
David Glasser
add32127fa Actually use builtBy! (Regression in 1.0.2.) 2015-03-03 18:20:37 -08:00
Slava Kim
c47f0d8a67 Fix the check for emacs-eshell terminal 2015-03-03 15:49:38 -08:00
Sashko Stubailo
241565c40b Remove extra option to rimraf
This option didn't even do anything, so we should remove the code.
2015-03-03 15:29:13 -08:00
Ben Newman
af50b4cc5b Define a class called PackageAPI and put it in its own file.
Summary:
The methods of the ad-hoc `api` object needed access to very few variables
from the surrounding lexical environment, and those few variables
(`sources`, `exports`, `uses`, `implies`) are better regarded as member
variables of the `PackageAPI` class.

Test Plan: `meteor test-packages`

Reviewers: Slava, dgreensp, glasser

Reviewed By: glasser

Differential Revision: https://phabricator.meteor.io/D30
2015-03-03 14:27:04 -05:00
Slava Kim
47f463d6b6 A slightly better error message when tasklist.exe wasn't found 2015-03-03 11:06:13 -08:00
Slava Kim
89e0373259 Fix progressbars on Windows 2015-03-02 16:34:04 -08:00
Slava Kim
eeeb3d9f3a Always get the width of the terminal through the width method 2015-03-02 16:27:15 -08:00
Slava Kim
cbff527131 Add a spinner option to the admin progressbar-test command 2015-03-02 16:01:31 -08:00