Skip to content

Commit 07a1eb8

Browse files
committed
Try add some output to track the build failure. Too much > dev/nulls
1 parent 5b2d130 commit 07a1eb8

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.travis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ before_script:
3737
- adb shell input keyevent 82 &
3838
script:
3939
- jdk_switcher use oraclejdk8
40-
- grunt default --verbose &&
41-
FULL_PACKAGE_VERSION=`node -e 'console.log(require("./bin/dist/tns-core-modules/package.json").version);'` &&
42-
(cd tns-platform-declarations && npm pack) &&
43-
wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" &&
44-
echo no | npm install -g nativescript.tgz --ignore-scripts > /dev/null && tns usage-reporting disable && tns error-reporting disable &&
45-
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 &&
46-
grunt runOnlyTestsApp --verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
40+
- grunt default --verbose
41+
- FULL_PACKAGE_VERSION=${node build/version.js}
42+
- (cd tns-platform-declarations && npm pack)
43+
- wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz"
44+
- echo no | npm install -g nativescript.tgz --ignore-scripts
45+
- tns usage-reporting disable && tns error-reporting disable
46+
- grunt buildOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --runtimeVersion=$RUNTIMEVERSION --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
47+
- grunt runOnlyTestsApp --verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
4748
- node ./build/travis-scripts/check-testrun-broken.js
48-
- adb pull /storage/sdcard/Documents/test-results.xml &&
49-
mv test-results.xml ~/test-run-results$PACKAGE_VERSION.xml
49+
- adb pull /storage/sdcard/Documents/test-results.xml
50+
- mv test-results.xml ~/test-run-results$PACKAGE_VERSION.xml
5051
before_deploy:
5152
- mv bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz ../.deploymentpackage
5253
- mv build ../

build/version.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var fs = require("fs");
2+
console.log(JSON.parse(fs.readFileSync("./bin/dist/tns-core-modules/package.json")).version);

0 commit comments

Comments
 (0)