Try add some output to track the build failure. Too much > dev/nulls

This commit is contained in:
Panayot Cankov
2017-01-24 11:32:54 +02:00
parent 669e3fce65
commit da4983c6bc
2 changed files with 12 additions and 9 deletions

View File

@ -38,16 +38,17 @@ before_script:
- adb shell input keyevent 82 & - adb shell input keyevent 82 &
script: script:
- jdk_switcher use oraclejdk8 - jdk_switcher use oraclejdk8
- grunt default --verbose && FULL_PACKAGE_VERSION=`node -e 'console.log(require("./bin/dist/tns-core-modules/package.json").version);'` - grunt default --verbose
&& (cd tns-platform-declarations && npm pack) && wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" - FULL_PACKAGE_VERSION=$(node build/version.js)
&& echo no | npm install -g nativescript.tgz --ignore-scripts > /dev/null && tns - (cd tns-platform-declarations && npm pack)
usage-reporting disable && tns error-reporting disable && grunt buildOnlyTestsApp - wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz"
--verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz - echo no | npm install -g nativescript.tgz --ignore-scripts
--runtimeVersion=$RUNTIMEVERSION --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false - tns usage-reporting disable && tns error-reporting disable
> /dev/null && grunt runOnlyTestsApp --verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz - grunt buildOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --runtimeVersion=$RUNTIMEVERSION --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
--emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false - grunt runOnlyTestsApp --verbose --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 /storage/sdcard/Documents/test-results.xml && mv test-results.xml ~/test-run-results$PACKAGE_VERSION.xml - adb pull /storage/sdcard/Documents/test-results.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 ../

2
build/version.js Normal file
View File

@ -0,0 +1,2 @@
var fs = require("fs");
console.log(JSON.parse(fs.readFileSync("./bin/dist/tns-core-modules/package.json")).version);