Skip to content

Commit 5898527

Browse files
committed
Install cordova to global in order to not mess up with npm local env.
1 parent d78a045 commit 5898527

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/platform-add.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ PLATFORM_VERSION=$3
99
FOLDER=".build-$PLATFORM"
1010
rm -rf $FOLDER
1111

12-
npm install "cordova@$CORDOVA_VERSION" --no-save
13-
./node_modules/.bin/cordova create $FOLDER com.github.cordova_plugin_firebase HelloWorld
12+
npm install -g "cordova@$CORDOVA_VERSION"
13+
cordova create $FOLDER com.github.cordova_plugin_firebase HelloWorld
1414
cp ./test/google-services.json $FOLDER
1515

1616
cd $FOLDER
1717

18-
../node_modules/.bin/cordova platform add "$PLATFORM@$PLATFORM_VERSION"
18+
cordova platform add "$PLATFORM@$PLATFORM_VERSION"

test/platform-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ PLATFORM_VERSION=$3
99
FOLDER=".build-$PLATFORM"
1010
cd $FOLDER
1111

12-
../node_modules/.bin/cordova build $PLATFORM
12+
cordova build $PLATFORM

test/plugin-add.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ else
1919
fi
2020

2121
if [[ "$PLUGIN" == "cordova-android-play-services-gradle-release" ]]; then
22-
../node_modules/.bin/cordova plugin add $PLUGIN --variable PLAY_SERVICES_VERSION=+ $FETCH_COMMAND --save
22+
cordova plugin add $PLUGIN --variable PLAY_SERVICES_VERSION=+ $FETCH_COMMAND --save
2323
elif [[ "$PLUGIN" == "cordova-android-firebase-gradle-release" ]]; then
24-
../node_modules/.bin/cordova plugin add $PLUGIN --variable FIREBASE_VERSION=+ $FETCH_COMMAND --save
24+
cordova plugin add $PLUGIN --variable FIREBASE_VERSION=+ $FETCH_COMMAND --save
2525
else
26-
../node_modules/.bin/cordova plugin add $PLUGIN $FETCH_COMMAND
26+
cordova plugin add $PLUGIN $FETCH_COMMAND
2727
fi

0 commit comments

Comments
 (0)