From 4b25bcc07492586a023a281aea6483ed08b57d15 Mon Sep 17 00:00:00 2001 From: wf9a5m75 Date: Thu, 25 Apr 2019 14:16:23 -0700 Subject: [PATCH] Fix: .travis.yml does not trigger travis action --- .travis.yml | 3 +-- build_test.sh | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 39d968852..1cb3404e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -94,6 +94,5 @@ install: fi - npm i > /dev/null -script - - npm test +script: - /bin/bash build_test.sh diff --git a/build_test.sh b/build_test.sh index 086099423..cb36f67c4 100644 --- a/build_test.sh +++ b/build_test.sh @@ -18,3 +18,7 @@ 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