GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/tools/test-npm.sh at master · lrowe/node Expand file tree/ Copy pathtest-npm.shMore file actions executable file ·43 lines (32 loc) · 1.13 KB / Copy pathtest-npm.shFile metadata and controlsexecutable file ·43 lines (32 loc) · 1.13 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 #!/bin/bash set -e # always change the working directory to the project's root directory cd $(dirname $0)/.. # pass a $NODE environment variable from something like Makefile # it should point to either ./node or ./node.exe, depending on the platform if [ -z $NODE ]; then echo "No node executable provided. Bailing." >&2 exit 0 fi rm -rf test-npm # make a copy of deps/npm to run the tests on cp -r deps/npm test-npm cd test-npm # do a rm first just in case deps/npm contained these rm -rf npm-cache npm-tmp npm-prefix mkdir npm-cache npm-tmp npm-prefix # set some npm env variables to point to our new temporary folders export npm_config_cache="$(pwd)/npm-cache" export npm_config_prefix="$(pwd)/npm-prefix" export npm_config_tmp="$(pwd)/npm-tmp" # ensure npm always uses the local node export PATH="$(../$NODE -p 'require("path").resolve("..")'):$PATH" unset NODE # make sure the binaries from the non-dev-deps are available node cli.js rebuild # install npm devDependencies and run npm's tests node cli.js install --ignore-scripts # run the tests node cli.js run-script test-node # clean up everything one single shot cd .. && rm -rf test-npm |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |