Permalink
Browse files

test: cache sinopia storage

  • Loading branch information...
1 parent d6fc5af commit 208fc82f13e78e806fc97ceebb408763b6c655ba @zkochan zkochan committed Dec 18, 2016
Showing with 1,226 additions and 6 deletions.
  1. +2 −0 .gitattributes
  2. +0 −3 .gitignore
  3. +6 −2 package.json
  4. +21 −0 sinopia/.gitignore
  5. +1 −1 sinopia/config.yaml
  6. +1 −0 sinopia/storage/.sinopia-db.json
  7. BIN sinopia/storage/circular-deps-1-of-2/circular-deps-1-of-2-1.0.2.tgz
  8. +152 −0 sinopia/storage/circular-deps-1-of-2/package.json
  9. BIN sinopia/storage/circular-deps-2-of-2/circular-deps-2-of-2-1.0.2.tgz
  10. +152 −0 sinopia/storage/circular-deps-2-of-2/package.json
  11. BIN sinopia/storage/dep-of-pkg-with-1-dep/dep-of-pkg-with-1-dep-1.0.0.tgz
  12. BIN sinopia/storage/dep-of-pkg-with-1-dep/dep-of-pkg-with-1-dep-1.1.0.tgz
  13. BIN sinopia/storage/dep-of-pkg-with-1-dep/dep-of-pkg-with-1-dep-1.1.1.tgz
  14. +146 −0 sinopia/storage/dep-of-pkg-with-1-dep/package.json
  15. BIN sinopia/storage/for-legacy-node/for-legacy-node-1.0.0.tgz
  16. +38 −0 sinopia/storage/for-legacy-node/package.json
  17. BIN sinopia/storage/for-legacy-pnpm/for-legacy-pnpm-1.0.0.tgz
  18. +38 −0 sinopia/storage/for-legacy-pnpm/package.json
  19. BIN sinopia/storage/hello-world-js-bin/hello-world-js-bin-1.0.0.tgz
  20. +51 −0 sinopia/storage/hello-world-js-bin/package.json
  21. BIN sinopia/storage/install-script-example/install-script-example-1.0.0.tgz
  22. +50 −0 sinopia/storage/install-script-example/package.json
  23. BIN sinopia/storage/not-compatible-with-any-os/not-compatible-with-any-os-1.0.0.tgz
  24. +38 −0 sinopia/storage/not-compatible-with-any-os/package.json
  25. +41 −0 sinopia/storage/peer-deps-in-child-pkg/package.json
  26. BIN sinopia/storage/peer-deps-in-child-pkg/peer-deps-in-child-pkg-1.0.0.tgz
  27. +37 −0 sinopia/storage/pkg-that-installs-slowly/package.json
  28. BIN sinopia/storage/pkg-that-installs-slowly/pkg-that-installs-slowly-1.0.0.tgz
  29. +48 −0 sinopia/storage/pkg-that-uses-plugins/package.json
  30. BIN sinopia/storage/pkg-that-uses-plugins/pkg-that-uses-plugins-1.0.0.tgz
  31. +82 −0 sinopia/storage/pkg-with-1-dep/package.json
  32. BIN sinopia/storage/pkg-with-1-dep/pkg-with-1-dep-1.0.1.tgz
  33. +41 −0 sinopia/storage/pkg-with-bundled-dependencies/package.json
  34. BIN sinopia/storage/pkg-with-bundled-dependencies/pkg-with-bundled-dependencies-1.0.0.tgz
  35. +45 −0 sinopia/storage/plugin-example/package.json
  36. BIN sinopia/storage/plugin-example/plugin-example-1.0.0.tgz
  37. +51 −0 sinopia/storage/pre-and-postinstall-scripts-example/package.json
  38. BIN sinopia/storage/pre-and-postinstall-scripts-example/pre-and-postinstall-scripts-example-1.0.0.tgz
  39. +108 −0 sinopia/storage/sh-hello-world/package.json
  40. BIN sinopia/storage/sh-hello-world/sh-hello-world-1.0.1.tgz
  41. +35 −0 sinopia/storage/symlinks-preserved/package.json
  42. BIN sinopia/storage/symlinks-preserved/symlinks-preserved-1.0.0.tgz
  43. +42 −0 sinopia/storage/test-pnpm-peer-deps/package.json
  44. BIN sinopia/storage/test-pnpm-peer-deps/test-pnpm-peer-deps-1.0.0.tgz
View
@@ -1 +1,3 @@
* text eol=lf
+
+*.tgz binary
View
@@ -14,6 +14,3 @@ fixtures
_docpress
lib
-
-# Sinopia storage
-sinopia/storage
View
@@ -137,10 +137,14 @@
"cover": "istanbul cover test/index.js",
"lint": "standard && tslint -c tslint.json --project .",
"sinopia": "sinopia -c ./sinopia/config.yaml",
- "test:tap": "sh test/packages/publish-all.sh && ts-node test | tap-diff",
+ "prebuild-sinopia": "rm -rf sinopia/storage/",
+ "publish-test-packages": "sh test/packages/publish-all.sh",
+ "build-sinopia": "npm-run-all -p -r sinopia publish-test-packages",
+ "test:tap": "ts-node test | tap-diff",
"test:e2e": "npm-run-all -p -r sinopia test:tap",
+ "pretest": "rm --force --recursive .tmp/",
"test": "npm run lint && npm run test:e2e",
- "posttest": "rm -rf .tmp",
+ "posttest": "git checkout -- sinopia/storage/",
"prerelease": "npm run tsc && npm test",
"release": "sh .scripts/release.sh",
"tsc": "rm -rf lib && tsc",
View
@@ -0,0 +1,21 @@
+storage/*
+
+# Don't ignore the ones published for specifically for testing purposes
+!storage/circular-deps-1-of-2/
+!storage/circular-deps-2-of-2/
+!storage/dep-of-pkg-with-1-dep/
+!storage/for-legacy-node/
+!storage/for-legacy-pnpm/
+!storage/hello-world-js-bin/
+!storage/install-script-example/
+!storage/not-compatible-with-any-os/
+!storage/peer-deps-in-child-pkg/
+!storage/pkg-that-installs-slowly/
+!storage/pkg-that-uses-plugins/
+!storage/pkg-with-1-dep/
+!storage/pkg-with-bundled-dependencies/
+!storage/plugin-example/
+!storage/pre-and-postinstall-scripts-example/
+!storage/sh-hello-world/
+!storage/symlinks-preserved/
+!storage/test-pnpm-peer-deps/
View
@@ -7,7 +7,7 @@
#
# path to a directory with all packages
-storage: ../.tmp/storage
+storage: ./storage
auth:
htpasswd:
@@ -0,0 +1 @@
+{"list":["hello-world-js-bin","pkg-with-bundled-dependencies","not-compatible-with-any-os","for-legacy-node","for-legacy-pnpm","circular-deps-1-of-2","circular-deps-2-of-2","dep-of-pkg-with-1-dep","pkg-with-1-dep","install-script-example","pre-and-postinstall-scripts-example","pkg-that-installs-slowly","pkg-that-uses-plugins","plugin-example","test-pnpm-peer-deps","peer-deps-in-child-pkg","sh-hello-world","symlinks-preserved"],"secret":"8f78a9f994dc48de35418e42801fabfb857c7c1918139990d43046a245c8ff21"}
@@ -0,0 +1,152 @@
+{
+ "name": "circular-deps-1-of-2",
+ "versions": {
+ "1.0.0": {
+ "name": "circular-deps-1-of-2",
+ "version": "1.0.0",
+ "author": {
+ "name": "Zoltan Kochan",
+ "email": "zoltan.kochan@gmail.com",
+ "url": "http://kochan.io/"
+ },
+ "license": "MIT",
+ "bin": {
+ "circular-deps-1-of-2": "./index.js"
+ },
+ "dependencies": {
+ "circular-deps-2-of-2": "1.0.0"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/rstacruz/pnpm/tree/master/test/packages/circular-deps-1-of-2"
+ },
+ "_id": "circular-deps-1-of-2@1.0.0",
+ "scripts": {},
+ "_shasum": "27222cc8dc29c7d445ac5af78266f1bbfcf7a1e1",
+ "_from": ".",
+ "_npmVersion": "3.10.3",
+ "_nodeVersion": "6.5.0",
+ "_npmUser": {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ },
+ "dist": {
+ "shasum": "27222cc8dc29c7d445ac5af78266f1bbfcf7a1e1",
+ "tarball": "https://registry.npmjs.org/circular-deps-1-of-2/-/circular-deps-1-of-2-1.0.0.tgz"
+ },
+ "maintainers": [
+ {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ }
+ ],
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/circular-deps-1-of-2-1.0.0.tgz_1475874736299_0.9206200123298913"
+ },
+ "directories": {}
+ },
+ "1.0.1": {
+ "name": "circular-deps-1-of-2",
+ "version": "1.0.1",
+ "author": {
+ "name": "Zoltan Kochan",
+ "email": "zoltan.kochan@gmail.com",
+ "url": "http://kochan.io/"
+ },
+ "license": "MIT",
+ "dependencies": {
+ "circular-deps-2-of-2": "1.0.1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/rstacruz/pnpm/tree/master/test/packages/circular-deps-1-of-2"
+ },
+ "_id": "circular-deps-1-of-2@1.0.1",
+ "scripts": {},
+ "_shasum": "9073da26da2aeb962e19dff9cd25c14d12ccf0ba",
+ "_from": ".",
+ "_npmVersion": "3.10.3",
+ "_nodeVersion": "6.5.0",
+ "_npmUser": {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ },
+ "dist": {
+ "shasum": "9073da26da2aeb962e19dff9cd25c14d12ccf0ba",
+ "tarball": "https://registry.npmjs.org/circular-deps-1-of-2/-/circular-deps-1-of-2-1.0.1.tgz"
+ },
+ "maintainers": [
+ {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ }
+ ],
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/circular-deps-1-of-2-1.0.1.tgz_1475875654139_0.5392674391623586"
+ },
+ "directories": {}
+ },
+ "1.0.2": {
+ "name": "circular-deps-1-of-2",
+ "version": "1.0.2",
+ "author": {
+ "name": "Zoltan Kochan",
+ "email": "zoltan.kochan@gmail.com",
+ "url": "http://kochan.io/"
+ },
+ "license": "MIT",
+ "dependencies": {
+ "circular-deps-2-of-2": "1.0.2"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/rstacruz/pnpm/tree/master/test/packages/circular-deps-1-of-2"
+ },
+ "_id": "circular-deps-1-of-2@1.0.2",
+ "scripts": {},
+ "_shasum": "386c271e484146383346d98b3fb18d2dda97a196",
+ "_from": ".",
+ "_npmVersion": "3.10.9",
+ "_nodeVersion": "6.9.1",
+ "_npmUser": {},
+ "dist": {
+ "shasum": "386c271e484146383346d98b3fb18d2dda97a196",
+ "tarball": "http://localhost:4873/circular-deps-1-of-2/-/circular-deps-1-of-2-1.0.2.tgz"
+ }
+ }
+ },
+ "dist-tags": {
+ "latest": [
+ "1.0.1",
+ "1.0.2"
+ ]
+ },
+ "_distfiles": {
+ "circular-deps-1-of-2-1.0.0.tgz": {
+ "url": "https://registry.npmjs.org/circular-deps-1-of-2/-/circular-deps-1-of-2-1.0.0.tgz",
+ "sha": "27222cc8dc29c7d445ac5af78266f1bbfcf7a1e1",
+ "registry": "npmjs"
+ },
+ "circular-deps-1-of-2-1.0.1.tgz": {
+ "url": "https://registry.npmjs.org/circular-deps-1-of-2/-/circular-deps-1-of-2-1.0.1.tgz",
+ "sha": "9073da26da2aeb962e19dff9cd25c14d12ccf0ba",
+ "registry": "npmjs"
+ }
+ },
+ "_attachments": {
+ "circular-deps-1-of-2-1.0.2.tgz": {
+ "shasum": "386c271e484146383346d98b3fb18d2dda97a196",
+ "version": "1.0.2"
+ }
+ },
+ "_uplinks": {
+ "npmjs": {
+ "etag": "W/\"57f81347-a2f\"",
+ "fetched": 1482068196881
+ }
+ },
+ "_rev": "4-0777838951f956e8",
+ "readme": "ERROR: No README data found!"
+}
@@ -0,0 +1,152 @@
+{
+ "name": "circular-deps-2-of-2",
+ "versions": {
+ "1.0.0": {
+ "name": "circular-deps-2-of-2",
+ "version": "1.0.0",
+ "author": {
+ "name": "Zoltan Kochan",
+ "email": "zoltan.kochan@gmail.com",
+ "url": "http://kochan.io/"
+ },
+ "license": "MIT",
+ "bin": {
+ "circular-deps-2-of-2": "./index.js"
+ },
+ "dependencies": {
+ "circular-deps-1-of-2": "1.0.0"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/rstacruz/pnpm/tree/master/test/packages/circular-deps-2-of-2"
+ },
+ "_id": "circular-deps-2-of-2@1.0.0",
+ "scripts": {},
+ "_shasum": "22320dc93461b6c3298edbbbe9b63d677fcc6a2c",
+ "_from": ".",
+ "_npmVersion": "3.10.3",
+ "_nodeVersion": "6.5.0",
+ "_npmUser": {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ },
+ "dist": {
+ "shasum": "22320dc93461b6c3298edbbbe9b63d677fcc6a2c",
+ "tarball": "https://registry.npmjs.org/circular-deps-2-of-2/-/circular-deps-2-of-2-1.0.0.tgz"
+ },
+ "maintainers": [
+ {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ }
+ ],
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/circular-deps-2-of-2-1.0.0.tgz_1475874754452_0.9763507368043065"
+ },
+ "directories": {}
+ },
+ "1.0.1": {
+ "name": "circular-deps-2-of-2",
+ "version": "1.0.1",
+ "author": {
+ "name": "Zoltan Kochan",
+ "email": "zoltan.kochan@gmail.com",
+ "url": "http://kochan.io/"
+ },
+ "license": "MIT",
+ "dependencies": {
+ "circular-deps-1-of-2": "1.0.1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/rstacruz/pnpm/tree/master/test/packages/circular-deps-2-of-2"
+ },
+ "_id": "circular-deps-2-of-2@1.0.1",
+ "scripts": {},
+ "_shasum": "df84be69c3c8589930443abd47dc7eb4cecbaa97",
+ "_from": ".",
+ "_npmVersion": "3.10.3",
+ "_nodeVersion": "6.5.0",
+ "_npmUser": {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ },
+ "dist": {
+ "shasum": "df84be69c3c8589930443abd47dc7eb4cecbaa97",
+ "tarball": "https://registry.npmjs.org/circular-deps-2-of-2/-/circular-deps-2-of-2-1.0.1.tgz"
+ },
+ "maintainers": [
+ {
+ "name": "zkochan",
+ "email": "zoltan.kochan@gmail.com"
+ }
+ ],
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/circular-deps-2-of-2-1.0.1.tgz_1475875642962_0.3759039214346558"
+ },
+ "directories": {}
+ },
+ "1.0.2": {
+ "name": "circular-deps-2-of-2",
+ "version": "1.0.2",
+ "author": {
+ "name": "Zoltan Kochan",
+ "email": "zoltan.kochan@gmail.com",
+ "url": "http://kochan.io/"
+ },
+ "license": "MIT",
+ "dependencies": {
+ "circular-deps-1-of-2": "1.0.2"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/rstacruz/pnpm/tree/master/test/packages/circular-deps-2-of-2"
+ },
+ "_id": "circular-deps-2-of-2@1.0.2",
+ "scripts": {},
+ "_shasum": "3417dae59a8c3b515b3b9b6ad688694b06381b07",
+ "_from": ".",
+ "_npmVersion": "3.10.9",
+ "_nodeVersion": "6.9.1",
+ "_npmUser": {},
+ "dist": {
+ "shasum": "3417dae59a8c3b515b3b9b6ad688694b06381b07",
+ "tarball": "http://localhost:4873/circular-deps-2-of-2/-/circular-deps-2-of-2-1.0.2.tgz"
+ }
+ }
+ },
+ "dist-tags": {
+ "latest": [
+ "1.0.1",
+ "1.0.2"
+ ]
+ },
+ "_distfiles": {
+ "circular-deps-2-of-2-1.0.0.tgz": {
+ "url": "https://registry.npmjs.org/circular-deps-2-of-2/-/circular-deps-2-of-2-1.0.0.tgz",
+ "sha": "22320dc93461b6c3298edbbbe9b63d677fcc6a2c",
+ "registry": "npmjs"
+ },
+ "circular-deps-2-of-2-1.0.1.tgz": {
+ "url": "https://registry.npmjs.org/circular-deps-2-of-2/-/circular-deps-2-of-2-1.0.1.tgz",
+ "sha": "df84be69c3c8589930443abd47dc7eb4cecbaa97",
+ "registry": "npmjs"
+ }
+ },
+ "_attachments": {
+ "circular-deps-2-of-2-1.0.2.tgz": {
+ "shasum": "3417dae59a8c3b515b3b9b6ad688694b06381b07",
+ "version": "1.0.2"
+ }
+ },
+ "_uplinks": {
+ "npmjs": {
+ "etag": "W/\"57f8133c-a2f\"",
+ "fetched": 1482068197604
+ }
+ },
+ "_rev": "4-fe5fa1f363f9710c",
+ "readme": "ERROR: No README data found!"
+}
Oops, something went wrong.

0 comments on commit 208fc82

Please sign in to comment.