mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
chore(travis): Update npm token
This commit is contained in:
23
.travis.yml
23
.travis.yml
@ -31,22 +31,23 @@ before_script:
|
||||
- nvm install $NODE_VERSION
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
- echo no | android create avd --force -n $AVD_NAME -t android-$EMULATOR_API_VER --abi default/armeabi-v7a -c 12M
|
||||
- echo no | android create avd --force -n $AVD_NAME -t android-$EMULATOR_API_VER --abi
|
||||
default/armeabi-v7a -c 12M
|
||||
- emulator -avd $AVD_NAME -no-audio -no-window &
|
||||
- android-wait-for-emulator
|
||||
- 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 -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
|
||||
- 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 ../
|
||||
@ -65,4 +66,4 @@ deploy:
|
||||
branch: master
|
||||
skip_cleanup: true
|
||||
api_key:
|
||||
secure: j2gE5jnGSuCFy7s3pDB6Or2j+vhlRYIlSSB1mDI7R5PvpV0kWr8yE1rLnyqeb0pI7WY/36SV/0NZCClJhlrZFvd7QvaP3+55cGX3ijmsDp8WxfQRyHppA9RZuMFujG7swFr/s0RmoYgO9mYNe46lJTX8m0HZeNN2qlAC7LDD3x8=
|
||||
secure: VJksODKcxXltNTU1Unv4V3qZMI5rrAupuxnCUpIBxks6azi6/FvcW6ctMOj5wPQ9cQKPa8SgaKF/ksyueTmcUt+RznBWbGJ3lxe+6MF0Uk7OI3M3Ga8Ke/21KcZ1oIysgZ0JGCmyR9iAIoSHK1KarIYfiYo9dGWOSuDkqJzLTjk=
|
||||
|
Reference in New Issue
Block a user