Closed janpio closed 5 years ago
This only seems to apple to cordova-plugin-camera and cordova-plugin-splashscreen.
The previous travis.yml had this:
- if [[ "$TEST_DIR" != "" ]]; then
cd $TEST_DIR;
npm install;
npm test;
else
cordova-paramedic --config pr/$PLATFORM --plugin . --shouldUseSauce --buildName travis-plugin-camera-$TRAVIS_JOB_NUMBER;
fi
It is used via TEST_DIR=.
or TEST_DIR=./tests/ios
.
The first one is obsolete, as the tests now always run npm test
before doing the paramedic stuff.
The second one runs native tests via xcodebuild
like https://github.com/apache/cordova-plugin-camera/tree/master/tests/ios or https://github.com/apache/cordova-plugin-splashscreen/tree/master/tests/ios.
I think we should rename this to ADDITIONAL_TESTS
and recreate the if/else with the paramedic call.
TEST_DIR
:Examples: https://travis-ci.org/apache/cordova-plugin-camera/jobs/530514187 https://travis-ci.org/apache/cordova-plugin-camera/jobs/530514188
Problem is that Paramedic itself doesn't have any tests of this kind, so it is difficult to test here in this repo first :/