依赖文件

This commit is contained in:
浅念
2025-03-20 17:35:53 +08:00
parent 634fe57349
commit 021ffc6052
1134 changed files with 137518 additions and 132 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
DO_BUILD=0
# If pull request, do it.
echo "TRAVIS_EVENT_TYPE = ${TRAVIS_EVENT_TYPE}"
if [[ ${TRAVIS_EVENT_TYPE} == "pull_request" ]]; then
DO_BUILD=1
fi
# If commit branch is master, do the build test
echo "TRAVIS_BRANCH = ${TRAVIS_BRANCH}"
if [[ ${TRAVIS_BRANCH} == "master" ]]; then
DO_BUILD=1
fi
if [ ${DO_BUILD} -eq 1 ]; then
cordova-paramedic --verbose --platform ${CORDOVA_PLATFORM} --justBuild --plugin ./tests;
fi
if [[ ${CORDOVA_PLATFORM} == "browser" ]]; then
npm run test
fi