Skip to content

Commit 187668a

Browse files
committed
Try add some output to track the build failure. Too much > dev/nulls
1 parent f228548 commit 187668a

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.travis.yml

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