Merge branch 'ErjanGavalji/publish-@next'

This commit is contained in:
Erjan Gavalji
2016-04-14 15:38:10 +03:00

View File

@ -9,7 +9,8 @@ env:
- AVD_NAME=Arm$EMULATOR_API_VER - AVD_NAME=Arm$EMULATOR_API_VER
addons: addons:
artifacts: artifacts:
paths: $HOME/test-run-results$PACKAGE_VERSION.xml paths:
- "$HOME/test-run-results$PACKAGE_VERSION.xml"
sudo: required sudo: required
dist: trusty dist: trusty
language: android language: android
@ -27,13 +28,13 @@ android:
- extra-android-support - extra-android-support
- extra-android-m2repository - extra-android-m2repository
- sys-img-armeabi-v7a-android-$EMULATOR_API_VER - sys-img-armeabi-v7a-android-$EMULATOR_API_VER
before_script: before_script:
- nvm install $NODE_VERSION - nvm install $NODE_VERSION
- npm install -g grunt-cli - npm install -g grunt-cli
- npm install - npm install
- (cd build/platform-declarations && npm install) - "(cd build/platform-declarations && npm install)"
- echo no | android create avd --force -n $AVD_NAME -t android-$EMULATOR_API_VER -b armeabi-v7a -c 12M - echo no | android create avd --force -n $AVD_NAME -t android-$EMULATOR_API_VER -b
armeabi-v7a -c 12M
- emulator -avd $AVD_NAME -skin WXGA720 -no-audio -no-window & - emulator -avd $AVD_NAME -skin WXGA720 -no-audio -no-window &
- android-wait-for-emulator - android-wait-for-emulator
script: script:
@ -44,13 +45,12 @@ script:
echo no | npm install nativescript -g > /dev/null && echo no | npm install nativescript -g > /dev/null &&
grunt buildOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --runtimeVersion=$RUNTIMEVERSION --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false > /dev/null && grunt buildOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --runtimeVersion=$RUNTIMEVERSION --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false > /dev/null &&
grunt runOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false grunt runOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
- node ./build/travis-scripts/check-testrun-broken.js - node ./build/travis-scripts/check-testrun-broken.js
- adb pull /data/data/org.nativescript.TestsApp/files/test-results.xml && - adb pull /data/data/org.nativescript.TestsApp/files/test-results.xml &&
mv test-results.xml ~/test-run-results$PACKAGE_VERSION.xml mv test-results.xml ~/test-run-results$PACKAGE_VERSION.xml
before_deploy: before_deploy:
- mv bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz ../.deploymentpackage - mv bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz ../.deploymentpackage
- mv .build ../ - mv build ../
- cd .. - cd ..
- rm -rf NativeScript - rm -rf NativeScript
- tar -zxvf .deploymentpackage - tar -zxvf .deploymentpackage
@ -66,4 +66,4 @@ deploy:
branch: master branch: master
skip_cleanup: true skip_cleanup: true
api_key: api_key:
secure: aFJZR8VIbFAlXfFx5G2AveSgpGjr40prghvw8m06X0yvmUQlucwHVyq+Ov0ZD94br8d7OUOPbUzh+p9N/+oXLAXOj3DbQmJaCc+fk/e+avHu1BRy3fg295P9BQau1Abu+2ZO7tUbg5zAqJqhbEgjXsr9B5gxl+vwh4lbDhCPCwo= secure: j2gE5jnGSuCFy7s3pDB6Or2j+vhlRYIlSSB1mDI7R5PvpV0kWr8yE1rLnyqeb0pI7WY/36SV/0NZCClJhlrZFvd7QvaP3+55cGX3ijmsDp8WxfQRyHppA9RZuMFujG7swFr/s0RmoYgO9mYNe46lJTX8m0HZeNN2qlAC7LDD3x8=