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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-10-06 05:21:44 +0300
committerGitHub <noreply@github.com>2016-10-06 05:21:44 +0300
commite59e8c57d613ee8a42951b6525256dc0ceb0b061 (patch)
treeb1c883335953db01442a34afbbbf856072ac6ffd /tests/lib/mocha-3.1.0/scripts/travis-after-script.sh
parentd4ad50fc0f5c24ecb1e25703c9aa284e359120cb (diff)
Upgrade mocha library for UI tests (#10692)
* Balance the UI tests job, second half currently 8 min longer * Upgrade mocha to 3.1.0 * rebalance * Remove old mocha
Diffstat (limited to 'tests/lib/mocha-3.1.0/scripts/travis-after-script.sh')
-rw-r--r--tests/lib/mocha-3.1.0/scripts/travis-after-script.sh9
1 files changed, 9 insertions, 0 deletions
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
new file mode 100644
index 0000000000..e93c98f796
--- /dev/null
+++ b/tests/lib/mocha-3.1.0/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