mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
Try add some output to track the build failure. Too much > dev/nulls
This commit is contained in:
19
.travis.yml
19
.travis.yml
@ -38,16 +38,17 @@ before_script:
|
||||
- adb shell input keyevent 82 &
|
||||
script:
|
||||
- jdk_switcher use oraclejdk8
|
||||
- grunt default --verbose && FULL_PACKAGE_VERSION=`node -e 'console.log(require("./bin/dist/tns-core-modules/package.json").version);'`
|
||||
&& (cd tns-platform-declarations && npm pack) && wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz"
|
||||
&& echo no | npm install -g nativescript.tgz --ignore-scripts > /dev/null && tns
|
||||
usage-reporting disable && tns error-reporting disable && grunt buildOnlyTestsApp
|
||||
--verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz
|
||||
--runtimeVersion=$RUNTIMEVERSION --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
|
||||
> /dev/null && grunt runOnlyTestsApp --verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz
|
||||
--emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
|
||||
- grunt default --verbose
|
||||
- FULL_PACKAGE_VERSION=$(node build/version.js)
|
||||
- (cd tns-platform-declarations && npm pack)
|
||||
- wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz"
|
||||
- echo no | npm install -g nativescript.tgz --ignore-scripts
|
||||
- tns usage-reporting disable && tns error-reporting disable
|
||||
- grunt buildOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --runtimeVersion=$RUNTIMEVERSION --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
|
||||
- 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:
|
||||
- mv bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz ../.deploymentpackage
|
||||
- mv build ../
|
||||
|
2
build/version.js
Normal file
2
build/version.js
Normal file
@ -0,0 +1,2 @@
|
||||
var fs = require("fs");
|
||||
console.log(JSON.parse(fs.readFileSync("./bin/dist/tns-core-modules/package.json")).version);
|
Reference in New Issue
Block a user