Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/mocha-3.1.2/scripts/travis-after-script.sh')
-rw-r--r--tests/lib/mocha-3.1.2/scripts/travis-after-script.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/scripts/travis-after-script.sh b/tests/lib/mocha-3.1.2/scripts/travis-after-script.sh
new file mode 100644
index 0000000000..e93c98f796
--- /dev/null
+++ b/tests/lib/mocha-3.1.2/scripts/travis-after-script.sh
@@ -0,0 +1,9 @@
+#!/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