You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/05/10 22:33:19 UTC
[cordova-plugin-splashscreen] branch master updated: Travis CI: Add
ADDITIONAL_TESTS_DIR=./tests/ios (#212)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-splashscreen.git
The following commit(s) were added to refs/heads/master by this push:
new 0934d12 Travis CI: Add ADDITIONAL_TESTS_DIR=./tests/ios (#212)
0934d12 is described below
commit 0934d126d2a1b24e42c1fdc0ac3e4bffd26faef1
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Sat May 11 00:33:14 2019 +0200
Travis CI: Add ADDITIONAL_TESTS_DIR=./tests/ios (#212)
* ADDITIONAL_TESTS_DIR=./tests/ios
* add actual code to run it
---
.travis.yml | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 86f0a70..d2f44f9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -37,6 +37,10 @@ _android: &_android
matrix:
include:
+ # additional `npm test` in directory
+ - env: ADDITIONAL_TESTS_DIR=./tests/ios
+ <<: *_ios
+
# one local test, without saucelabs
- env: PLATFORM=local/browser
<<: *_ios
@@ -89,7 +93,7 @@ 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_PLUGIN_TO_TEST="./spec/testable-plugin/"
PARAMEDIC_COMMAND="node main.js"
else
# when used in any other (plugin) repo
@@ -98,7 +102,18 @@ before_script:
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
- - $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME
+ - 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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org