Skip to content

Commit

Permalink
Fix cordova path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jule- committed Oct 24, 2018
1 parent f4e6cd1 commit 35e1fa6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,5 @@ before_install:
- if [[ "$CORDOVA_PLATFORM" == "android" ]]; then yes | sdkmanager "build-tools;26.0.0" "platforms;android-26" ; fi

script:
- node -v
- npm -v
- bash ./test/test-default.sh $CORDOVA_VERSION $CORDOVA_PLATFORM $CORDOVA_PLATFORM_VERSION
- node -v
- npm -v
- if [[ "$CORDOVA_PLATFORM" == "android" ]]; then bash ./test/test-with-3-plugins.sh $CORDOVA_VERSION $CORDOVA_PLATFORM $CORDOVA_PLATFORM_VERSION cordova-plugin-request-location-accuracy cordova-android-play-services-gradle-release cordova-android-firebase-gradle-release; fi
4 changes: 2 additions & 2 deletions test/platform-add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ FOLDER=".build-$PLATFORM"
rm -rf $FOLDER

npm install -g "cordova@$CORDOVA_VERSION"
./node_modules/.bin/cordova create $FOLDER com.github.cordova_plugin_firebase HelloWorld
cordova create $FOLDER com.github.cordova_plugin_firebase HelloWorld
cp ./test/google-services.json $FOLDER

cd $FOLDER

../node_modules/.bin/cordova platform add "$PLATFORM@$PLATFORM_VERSION"
cordova platform add "$PLATFORM@$PLATFORM_VERSION"
2 changes: 1 addition & 1 deletion test/platform-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ PLATFORM_VERSION=$3
FOLDER=".build-$PLATFORM"
cd $FOLDER

../node_modules/.bin/cordova build $PLATFORM
cordova build $PLATFORM
6 changes: 3 additions & 3 deletions test/plugin-add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ else
fi

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

0 comments on commit 35e1fa6

Please sign in to comment.