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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_installchangelogs:
dh_installchangelogs changelog.md
override_dh_auto_build:
# Bluebird depends on itself to build. Therefore we need to copy a
# prebuilt version of Bluebird into place to bootstrap things in
# Debian.
cp -r $(CURDIR)/debian/node-modules/ $(CURDIR)/node_modules/
nodejs tools/build.js --release --no-minify
rm -r $(CURDIR)/node_modules/
override_dh_auto_test:
# Use the Debian built release of bluebird for tests
mkdir -p $(CURDIR)/node_modules/bluebird/js/release
cp $(CURDIR)/js/release/* $(CURDIR)/node_modules/bluebird/js/release/
cp $(CURDIR)/package.json $(CURDIR)/node_modules/bluebird/
# Some tests are failing/flaky. Therefore the following command
# cannot be run for now:
#nodejs tools/test --no-js-hint
# Here are the failing tests (should try globbing them out to avoid
# testing each of the others separately):
#nodejs tools/test --run=tapCatch.js
#nodejs tools/test --run=generator.js
#nodejs tools/test --run=getNewLibraryCopy.js
#nodejs tools/test --run=long_stack_traces.js
# These tests work:
nodejs tools/test --run=2.1.2.js --no-js-hint
nodejs tools/test --run=filter.js --no-js-hint
nodejs tools/test --run=tap.js --no-js-hint
nodejs tools/test --run=2.1.3.js --no-js-hint
nodejs tools/test --run=finally.js --no-js-hint
nodejs tools/test --run=2.2.1.js --no-js-hint
nodejs tools/test --run=following.js --no-js-hint
nodejs tools/test --run=timers.js --no-js-hint
nodejs tools/test --run=2.2.2.js --no-js-hint
nodejs tools/test --run=try.js --no-js-hint
nodejs tools/test --run=2.2.3.js --no-js-hint
nodejs tools/test --run=get.js --no-js-hint
nodejs tools/test --run=unhandled_rejections.js --no-js-hint
nodejs tools/test --run=2.2.4.js --no-js-hint
nodejs tools/test --run=using.js --no-js-hint
nodejs tools/test --run=2.2.5.js --no-js-hint
nodejs tools/test --run=github-2xx-76.js --no-js-hint
nodejs tools/test --run=2.2.6.js --no-js-hint
nodejs tools/test --run=github-3.6.4.js --no-js-hint
nodejs tools/test --run=2.2.7.js --no-js-hint
nodejs tools/test --run=github-3.7.3.js --no-js-hint
nodejs tools/test --run=2.3.1.js --no-js-hint
nodejs tools/test --run=github-4.1.7.js --no-js-hint
nodejs tools/test --run=2.3.2.js --no-js-hint
nodejs tools/test --run=github36.js --no-js-hint
nodejs tools/test --run=2.3.3.js --no-js-hint
nodejs tools/test --run=is.js --no-js-hint
nodejs tools/test --run=2.3.4.js --no-js-hint
nodejs tools/test --run=join.js --no-js-hint
nodejs tools/test --run=3.2.1.js --no-js-hint
nodejs tools/test --run=late_buffer_safety.js --no-js-hint
nodejs tools/test --run=3.2.2.js --no-js-hint
nodejs tools/test --run=3.2.3.js --no-js-hint
nodejs tools/test --run=map.js --no-js-hint
nodejs tools/test --run=3.2.4.js --no-js-hint
nodejs tools/test --run=method.js --no-js-hint
nodejs tools/test --run=3.2.5.js --no-js-hint
nodejs tools/test --run=monitoring.js --no-js-hint
nodejs tools/test --run=3.2.6.js --no-js-hint
nodejs tools/test --run=multiple-copies.js --no-js-hint
nodejs tools/test --run=any.js --no-js-hint
nodejs tools/test --run=no_conflict.js --no-js-hint
nodejs tools/test --run=api_exceptions.js --no-js-hint
nodejs tools/test --run=nodeify.js --no-js-hint
nodejs tools/test --run=async.js --no-js-hint
nodejs tools/test --run=promise_array.js --no-js-hint
nodejs tools/test --run=bind.js --no-js-hint
nodejs tools/test --run=promisify.js --no-js-hint
nodejs tools/test --run=bluebird-multiple-instances.js --no-js-hint
nodejs tools/test --run=props.js --no-js-hint
nodejs tools/test --run=call.js --no-js-hint
nodejs tools/test --run=race.js --no-js-hint
nodejs tools/test --run=cancel.js --no-js-hint
nodejs tools/test --run=reduce.js --no-js-hint
nodejs tools/test --run=catch_filter.js --no-js-hint
nodejs tools/test --run=reflect.js --no-js-hint
nodejs tools/test --run=collections_thenables.js --no-js-hint
nodejs tools/test --run=regress.js --no-js-hint
nodejs tools/test --run=constructor.js --no-js-hint
nodejs tools/test --run=rejections.js --no-js-hint
nodejs tools/test --run=cycles.js --no-js-hint
nodejs tools/test --run=resolution.js --no-js-hint
nodejs tools/test --run=direct_resolving.js --no-js-hint
nodejs tools/test --run=schedule.js --no-js-hint
nodejs tools/test --run=domain.js --no-js-hint
nodejs tools/test --run=settle.js --no-js-hint
nodejs tools/test --run=done.js --no-js-hint
nodejs tools/test --run=some.js --no-js-hint
nodejs tools/test --run=each.js --no-js-hint
nodejs tools/test --run=spread.js --no-js-hint
nodejs tools/test --run=error.js --no-js-hint
nodejs tools/test --run=synchronous_inspection.js --no-js-hint
# tools/test.js builds a debug version of bluebird (ovewriting the
# release version in dh_auto_build. A quick fix is to build the
# release version of bluebird again for dh_install to use.
cp -r $(CURDIR)/debian/node-modules/ $(CURDIR)/node_modules/
nodejs tools/build.js --release --no-minify
rm -r $(CURDIR)/node_modules/
override_dh_auto_clean:
dh_auto_clean
rm -rf js
|