diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/scripts')
4 files changed, 0 insertions, 47 deletions
diff --git a/tests/lib/mocha-3.1.0/scripts/dedefine.js b/tests/lib/mocha-3.1.0/scripts/dedefine.js deleted file mode 100644 index c647c0e083..0000000000 --- a/tests/lib/mocha-3.1.0/scripts/dedefine.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -/** - * This is a transform stream we're using to strip AMD calls from - * dependencies in our Browserify bundle. - */ - -var through = require('through2'); -var defineRx = /typeof define === ['"]function['"] && define\.amd/g; - -function createStream() { - return through.obj(function(chunk, enc, next) { - this.push(String(chunk) - .replace(defineRx, 'false')); - next(); - }); -} - -module.exports = function(b) { - function wrap() { - b.pipeline.get('wrap').push(createStream()); - } - - b.on('reset', wrap); - wrap(); -}; diff --git a/tests/lib/mocha-3.1.0/scripts/travis-after-script.sh b/tests/lib/mocha-3.1.0/scripts/travis-after-script.sh deleted file mode 100644 index e93c98f796..0000000000 --- a/tests/lib/mocha-3.1.0/scripts/travis-after-script.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -# syncs Karma test bundles to S3 if $S3 is set - -if [ ${S3} ] -then - mkdir -p .karma/${TRAVIS_JOB_NUMBER} - cp ./mocha.js ".karma/${TRAVIS_JOB_NUMBER}/mocha.js" - aws s3 sync ".karma/${TRAVIS_JOB_NUMBER}" "s3://mochajs/karma-bundles/${TRAVIS_JOB_NUMBER}" -fi diff --git a/tests/lib/mocha-3.1.0/scripts/travis-before-install.sh b/tests/lib/mocha-3.1.0/scripts/travis-before-install.sh deleted file mode 100644 index 9913070ae9..0000000000 --- a/tests/lib/mocha-3.1.0/scripts/travis-before-install.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -npm install --production -# this avoids our mocha.opts (and thus devDependencies) in a roundabout way -./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js diff --git a/tests/lib/mocha-3.1.0/scripts/travis-before-script.sh b/tests/lib/mocha-3.1.0/scripts/travis-before-script.sh deleted file mode 100644 index e5c6b25414..0000000000 --- a/tests/lib/mocha-3.1.0/scripts/travis-before-script.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -# installs awscli from pip if $S3 is set - -if [ ${S3} ] -then - sudo pip install awscli -fi |