This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: manually fix lines breaks to LF
- Loading branch information
Showing
7 changed files
with
582 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,118 @@ | ||
# This Travis configuration file is built after a Cordova Paramedic | ||
# specific template with minimal modifications and adaptations: | ||
# https://github.com/apache/cordova-paramedic/blob/master/.travis.yml | ||
|
||
sudo: false | ||
|
||
addons: | ||
jwt: | ||
# SAUCE_ACCESS_KEY | ||
secure: "lXoPl/RjXnA5FocMLhpA4nFtzH/VaX6oMDG4H/uNAKBusTpQiVmmnXkZhv6ERsuuHHMUfZn/29m2On1J4hv8x+u5XpBjkTe0/5umYARTuyWXfnMmILNVNKZr7qmaiFBXI1LrnEoNqgbKR1ZqoN6bMrPZEWRr7AFVgwkRsWRoeTc=" | ||
|
||
env: | ||
global: | ||
- SAUCE_USERNAME=snay | ||
- TRAVIS_NODE_VERSION=6 | ||
- ANDROID_API_LEVEL=28 | ||
- ANDROID_BUILD_TOOLS_VERSION=28.0.3 | ||
|
||
language: node_js | ||
node_js: 6 | ||
|
||
# yaml anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027 | ||
|
||
_ios: &_ios | ||
os: osx | ||
osx_image: xcode10.2 | ||
|
||
_android: &_android | ||
language: android | ||
os: linux | ||
jdk: oraclejdk8 | ||
android: | ||
components: | ||
- tools | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android-$ANDROID_API_LEVEL | ||
licenses: | ||
- 'android-sdk-preview-license-.+' | ||
- 'android-sdk-license-.+' | ||
- 'google-gdk-license-.+' | ||
|
||
matrix: | ||
include: | ||
# local tests, without saucelabs | ||
- env: PLATFORM=local/browser | ||
<<: *_ios | ||
- env: PLATFORM=local/ios-10.0 | ||
<<: *_ios | ||
|
||
# many tests with saucelabs | ||
- env: PLATFORM=browser-chrome | ||
- env: PLATFORM=browser-firefox | ||
- env: PLATFORM=browser-safari | ||
- env: PLATFORM=browser-edge | ||
|
||
- env: PLATFORM=ios-11.3 | ||
<<: *_ios | ||
- env: PLATFORM=ios-12.0 | ||
<<: *_ios | ||
- env: PLATFORM=ios-12.2 | ||
<<: *_ios | ||
|
||
- env: PLATFORM=android-6.0 | ||
<<: *_android | ||
- env: PLATFORM=android-7.0 | ||
<<: *_android | ||
- env: PLATFORM=android-7.1 | ||
<<: *_android | ||
- env: PLATFORM=android-8.0 | ||
<<: *_android | ||
- env: PLATFORM=android-8.1 | ||
<<: *_android | ||
- env: PLATFORM=android-9.0 | ||
<<: *_android | ||
|
||
before_install: | ||
# manually install Node for `language: android` | ||
- if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi | ||
- node --version | ||
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi | ||
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi | ||
- npm install -g cordova | ||
# install paramedic if not running on paramedic repo | ||
- if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi | ||
|
||
install: | ||
- npm install | ||
|
||
before_script: | ||
- | | ||
if [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then | ||
# when used in the cordova-paramedic repo | ||
TEST_COMMAND="npm run eslint" | ||
PARAMEDIC_PLUGIN_TO_TEST="./spec/testable-plugin/" | ||
PARAMEDIC_COMMAND="node main.js" | ||
else | ||
# when used in any other (plugin) repo | ||
TEST_COMMAND="npm test" | ||
PARAMEDIC_PLUGIN_TO_TEST=$(pwd) | ||
PARAMEDIC_COMMAND="cordova-paramedic" | ||
fi | ||
- PARAMEDIC_BUILDNAME=travis-$TRAVIS_REPO_SLUG-$TRAVIS_JOB_NUMBER | ||
- | | ||
echo "Variables now are set to:" | ||
echo "TEST_COMMAND=$TEST_COMMAND" | ||
echo "ADDITIONAL_TESTS=$ADDITIONAL_TESTS" | ||
echo "PARAMEDIC_COMMAND=$PARAMEDIC_COMMAND" | ||
echo "PLATFORM=$PLATFORM" | ||
echo "PARAMEDIC_PLUGIN_TO_TEST=$PARAMEDIC_PLUGIN_TO_TEST" | ||
echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME" | ||
script: | ||
- $TEST_COMMAND | ||
- if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then | ||
cd $ADDITIONAL_TESTS_DIR && npm install && npm test; | ||
else | ||
$PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME; | ||
fi | ||
# This Travis configuration file is built after a Cordova Paramedic | ||
# specific template with minimal modifications and adaptations: | ||
# https://github.com/apache/cordova-paramedic/blob/master/.travis.yml | ||
|
||
sudo: false | ||
|
||
addons: | ||
jwt: | ||
# SAUCE_ACCESS_KEY | ||
secure: "lXoPl/RjXnA5FocMLhpA4nFtzH/VaX6oMDG4H/uNAKBusTpQiVmmnXkZhv6ERsuuHHMUfZn/29m2On1J4hv8x+u5XpBjkTe0/5umYARTuyWXfnMmILNVNKZr7qmaiFBXI1LrnEoNqgbKR1ZqoN6bMrPZEWRr7AFVgwkRsWRoeTc=" | ||
|
||
env: | ||
global: | ||
- SAUCE_USERNAME=snay | ||
- TRAVIS_NODE_VERSION=6 | ||
- ANDROID_API_LEVEL=28 | ||
- ANDROID_BUILD_TOOLS_VERSION=28.0.3 | ||
|
||
language: node_js | ||
node_js: 6 | ||
|
||
# yaml anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027 | ||
|
||
_ios: &_ios | ||
os: osx | ||
osx_image: xcode10.2 | ||
|
||
_android: &_android | ||
language: android | ||
os: linux | ||
jdk: oraclejdk8 | ||
android: | ||
components: | ||
- tools | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android-$ANDROID_API_LEVEL | ||
licenses: | ||
- 'android-sdk-preview-license-.+' | ||
- 'android-sdk-license-.+' | ||
- 'google-gdk-license-.+' | ||
|
||
matrix: | ||
include: | ||
# local tests, without saucelabs | ||
- env: PLATFORM=local/browser | ||
<<: *_ios | ||
- env: PLATFORM=local/ios-10.0 | ||
<<: *_ios | ||
|
||
# many tests with saucelabs | ||
- env: PLATFORM=browser-chrome | ||
- env: PLATFORM=browser-firefox | ||
- env: PLATFORM=browser-safari | ||
- env: PLATFORM=browser-edge | ||
|
||
- env: PLATFORM=ios-11.3 | ||
<<: *_ios | ||
- env: PLATFORM=ios-12.0 | ||
<<: *_ios | ||
- env: PLATFORM=ios-12.2 | ||
<<: *_ios | ||
|
||
- env: PLATFORM=android-6.0 | ||
<<: *_android | ||
- env: PLATFORM=android-7.0 | ||
<<: *_android | ||
- env: PLATFORM=android-7.1 | ||
<<: *_android | ||
- env: PLATFORM=android-8.0 | ||
<<: *_android | ||
- env: PLATFORM=android-8.1 | ||
<<: *_android | ||
- env: PLATFORM=android-9.0 | ||
<<: *_android | ||
|
||
before_install: | ||
# manually install Node for `language: android` | ||
- if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi | ||
- node --version | ||
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi | ||
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi | ||
- npm install -g cordova | ||
# install paramedic if not running on paramedic repo | ||
- if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi | ||
|
||
install: | ||
- npm install | ||
|
||
before_script: | ||
- | | ||
if [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then | ||
# when used in the cordova-paramedic repo | ||
TEST_COMMAND="npm run eslint" | ||
PARAMEDIC_PLUGIN_TO_TEST="./spec/testable-plugin/" | ||
PARAMEDIC_COMMAND="node main.js" | ||
else | ||
# when used in any other (plugin) repo | ||
TEST_COMMAND="npm test" | ||
PARAMEDIC_PLUGIN_TO_TEST=$(pwd) | ||
PARAMEDIC_COMMAND="cordova-paramedic" | ||
fi | ||
- PARAMEDIC_BUILDNAME=travis-$TRAVIS_REPO_SLUG-$TRAVIS_JOB_NUMBER | ||
- | | ||
echo "Variables now are set to:" | ||
echo "TEST_COMMAND=$TEST_COMMAND" | ||
echo "ADDITIONAL_TESTS=$ADDITIONAL_TESTS" | ||
echo "PARAMEDIC_COMMAND=$PARAMEDIC_COMMAND" | ||
echo "PLATFORM=$PLATFORM" | ||
echo "PARAMEDIC_PLUGIN_TO_TEST=$PARAMEDIC_PLUGIN_TO_TEST" | ||
echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME" | ||
script: | ||
- $TEST_COMMAND | ||
- if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then | ||
cd $ADDITIONAL_TESTS_DIR && npm install && npm test; | ||
else | ||
$PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
--- | ||
license: 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. | ||
--- | ||
|
||
# cordova-plugin-whitelist-tests | ||
|
||
This are an [optional JavaScript interface](#whitelist) to the core Cordova Whitelist functionality and the test plugin that uses it to test cordova-plugin-whitelist. | ||
|
||
## Whitelist | ||
|
||
> The `whitelist` object provides an interface for testing whether arbitrary | ||
> URLs are allowed by the currently active configuration, or would be allowed | ||
> by a given set of whitelist patterns. | ||
### Methods | ||
|
||
- cordova.whitelist.match | ||
- cordova.whitelist.test | ||
|
||
#### cordova.whitelist.match | ||
|
||
Indicates whether a given URL would be allowed by a set of Whitelist URL | ||
patterns. | ||
|
||
cordova.whitelist.match(url, patterns, callback); | ||
|
||
`callback` will be invoked with a boolean argument indicating whether the | ||
url matches the set of patterns. | ||
|
||
#### cordova.whitelist.test | ||
|
||
Indicates whether a given URL would be allowed by the current application | ||
configuration. | ||
|
||
cordova.whitelist.test(url, callback); | ||
|
||
`callback` will be invoked with a boolean argument indicating whether the | ||
url is currently whitelisted. | ||
--- | ||
license: 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. | ||
--- | ||
|
||
# cordova-plugin-whitelist-tests | ||
|
||
This are an [optional JavaScript interface](#whitelist) to the core Cordova Whitelist functionality and the test plugin that uses it to test cordova-plugin-whitelist. | ||
|
||
## Whitelist | ||
|
||
> The `whitelist` object provides an interface for testing whether arbitrary | ||
> URLs are allowed by the currently active configuration, or would be allowed | ||
> by a given set of whitelist patterns. | ||
### Methods | ||
|
||
- cordova.whitelist.match | ||
- cordova.whitelist.test | ||
|
||
#### cordova.whitelist.match | ||
|
||
Indicates whether a given URL would be allowed by a set of Whitelist URL | ||
patterns. | ||
|
||
cordova.whitelist.match(url, patterns, callback); | ||
|
||
`callback` will be invoked with a boolean argument indicating whether the | ||
url matches the set of patterns. | ||
|
||
#### cordova.whitelist.test | ||
|
||
Indicates whether a given URL would be allowed by the current application | ||
configuration. | ||
|
||
cordova.whitelist.test(url, callback); | ||
|
||
`callback` will be invoked with a boolean argument indicating whether the | ||
url is currently whitelisted. |
Oops, something went wrong.