Skip to content

Commit 15f14b1

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

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.travis.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ env:
77
- EMULATOR_API_VER=21
88
- RUNTIMEVERSION=next
99
- AVD_NAME=Arm$EMULATOR_API_VER
10+
- |-
11+
FULL_PACKAGE_VERSION=$(node -e "\"console.log(require(\\\"./bin/dist/tns-core-modules/package.json\\\").version);\"")
1012
addons:
1113
artifacts:
1214
paths:
@@ -28,6 +30,9 @@ android:
2830
- extra-android-m2repository
2931
- sys-img-armeabi-v7a-android-$EMULATOR_API_VER
3032
before_script:
33+
- env
34+
- echo "Full package version"
35+
- echo $FULL_PACKAGE_VERSION
3136
- nvm install $NODE_VERSION
3237
- npm install -g grunt-cli
3338
- npm install
@@ -37,16 +42,16 @@ before_script:
3742
- adb shell input keyevent 82 &
3843
script:
3944
- 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
45+
- grunt default --verbose
46+
- (cd tns-platform-declarations && npm pack)
47+
- wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz"
48+
- echo no | npm install -g nativescript.tgz --ignore-scripts
49+
- tns usage-reporting disable && tns error-reporting disable
50+
- grunt buildOnlyTestsApp --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --runtimeVersion=$RUNTIMEVERSION --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
51+
- grunt runOnlyTestsApp --verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
4752
- 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
53+
- adb pull /storage/sdcard/Documents/test-results.xml
54+
- mv test-results.xml ~/test-run-results$PACKAGE_VERSION.xml
5055
before_deploy:
5156
- mv bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz ../.deploymentpackage
5257
- mv build ../

0 commit comments

Comments
 (0)