fix log reaches maximum error
MODIFY
.travis.yml
.travis.yml
@@ -43,30 +43,30 @@ install:
&& git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm
install ${NODE_VERSION} && nvm alias default ${NODE_VERSION} && nvm use default > /dev/null;
fi
- - version=$(node --version); if [[ '${version}' != "v{NODE_VERSION}" ]]; then
+ - version=$(node --version); if [[ "${version}" != "v{NODE_VERSION}" ]]; then
rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm
&& git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm
install ${NODE_VERSION} && nvm alias default ${NODE_VERSION} && nvm use default > /dev/null;
fi
- node --version
- - exist=$(which cordova); if [[ -z "${exist}" ]]; then npm -g install cordova; fi
+ - exist=$(which cordova); if [[ -z "${exist}" ]]; then npm -g install cordova > /dev/null; fi
- cordova --version
- - exist=$(which cordova-paramedic); if [[ -z "${exist}" ]]; then npm -g install cordova-paramedic; fi
+ - exist=$(which cordova-paramedic); if [[ -z "${exist}" ]]; then npm -g install cordova-paramedic > /dev/null; fi
- if [[ "${CORDOVA_PLATFORM}" == "android" ]]; then
- if test ! -e $HOME/android-sdk-dl/sdk-tools.zip ; then curl https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip > $HOME/android-sdk-dl/sdk-tools.zip ; fi;
- unzip -qq -n $HOME/android-sdk-dl/sdk-tools.zip -d ${ANDROID_HOME};
+ if test ! -e $HOME/android-sdk-dl/sdk-tools.zip ; then curl https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip > $HOME/android-sdk-dl/sdk-tools.zip > /dev/null; fi;
+ unzip -qq -n $HOME/android-sdk-dl/sdk-tools.zip -d ${ANDROID_HOME} > /dev/null;
fi
- if [[ ! -e "${HOME}/.android/avd" ]]; then
mkdir -p ${HOME}/.android/avd/ > /dev/null;
fi
- if [[ "${CORDOVA_PLATFORM}" == "android" ]]; then
- echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager 'tools';
+ echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager 'tools' > /dev/null;
fi
- if [[ "${CORDOVA_PLATFORM}" == "android" ]]; then
- echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager 'platform-tools';
+ echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager 'platform-tools' > /dev/null;
fi
- if [[ "${CORDOVA_PLATFORM}" == "android" ]]; then
- echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}";
+ echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" > /dev/null;
fi
- if [[ "${CORDOVA_PLATFORM}" == "android" ]]; then
echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-${ANDROID_API},sys-img-x86_64-android-${ANDROID_API};
@@ -75,7 +75,7 @@ install:
echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager "platforms;android-${ANDROID_API}";
fi
- if [[ "${CORDOVA_PLATFORM}" == "android" ]]; then
- echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager 'extras;google;m2repository';
+ echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager 'extras;google;m2repository' > /dev/null;
fi
- npm i

fix log reaches maximum error