Files
crm-uni/node_modules/cordova-plugin-googlemaps/build_test.sh
T
2025-03-20 17:35:53 +08:00

25 lines
514 B
Bash

#!/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