Repository: cordova-paramedic
Updated Branches:
  refs/heads/master eca89c5e8 -> 4c6089a58


Added a plugin to let tests know that they are running in CI env


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/4c6089a5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/4c6089a5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/4c6089a5

Branch: refs/heads/master
Commit: 4c6089a58c915d5aa5f7c5b21687775a8b2567fd
Parents: eca89c5
Author: Alexander Sorokin <alexander.soro...@akvelon.com>
Authored: Thu Sep 22 19:32:02 2016 +0300
Committer: Alexander Sorokin <alexander.soro...@akvelon.com>
Committed: Thu Sep 22 19:32:02 2016 +0300

----------------------------------------------------------------------
 ci-plugin/ci.js      | 32 ++++++++++++++++++++++++++++++++
 ci-plugin/plugin.xml | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/4c6089a5/ci-plugin/ci.js
----------------------------------------------------------------------
diff --git a/ci-plugin/ci.js b/ci-plugin/ci.js
new file mode 100644
index 0000000..721b6cc
--- /dev/null
+++ b/ci-plugin/ci.js
@@ -0,0 +1,32 @@
+/**
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+*/
+
+/* global window */
+
+function CI() {
+
+}
+
+CI.prototype.initialize = function() {
+    window.IS_CI = true;
+};
+
+new CI().initialize();
+
+module.exports = CI;

http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/4c6089a5/ci-plugin/plugin.xml
----------------------------------------------------------------------
diff --git a/ci-plugin/plugin.xml b/ci-plugin/plugin.xml
new file mode 100644
index 0000000..689d5f1
--- /dev/null
+++ b/ci-plugin/plugin.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0";
+           id="cordova-plugin-paramedic-is-ci"
+      version="1.0.0-dev">
+
+    <name>Paramedic CI</name>
+    <description>Install this plugin to let tests know that they are running 
on CI</description>
+    <license>Apache 2.0</license>
+
+    <js-module src="ci.js" name="ci">
+        <runs/>
+    </js-module>
+
+</plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to