chore(travis): Update npm token

This commit is contained in:
Hristo Deshev
2017-01-23 14:24:41 +02:00
parent e267828c08
commit 669e3fce65

View File

@ -14,9 +14,9 @@ addons:
sudo: false sudo: false
language: android language: android
node_js: node_js:
- 4.2.3 - 4.2.3
jdk: jdk:
- oraclejdk8 - oraclejdk8
android: android:
components: components:
- platform-tools - platform-tools
@ -28,36 +28,37 @@ android:
- extra-android-m2repository - extra-android-m2repository
- sys-img-armeabi-v7a-android-$EMULATOR_API_VER - sys-img-armeabi-v7a-android-$EMULATOR_API_VER
before_script: before_script:
- nvm install $NODE_VERSION - nvm install $NODE_VERSION
- npm install -g grunt-cli - npm install -g grunt-cli
- npm install - 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
- emulator -avd $AVD_NAME -no-audio -no-window & default/armeabi-v7a -c 12M
- android-wait-for-emulator - emulator -avd $AVD_NAME -no-audio -no-window &
- adb shell input keyevent 82 & - android-wait-for-emulator
- adb shell input keyevent 82 &
script: script:
- jdk_switcher use oraclejdk8 - jdk_switcher use oraclejdk8
- grunt default --verbose && - grunt default --verbose && FULL_PACKAGE_VERSION=`node -e 'console.log(require("./bin/dist/tns-core-modules/package.json").version);'`
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"
(cd tns-platform-declarations && npm pack) && && echo no | npm install -g nativescript.tgz --ignore-scripts > /dev/null && tns
wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" && usage-reporting disable && tns error-reporting disable && grunt buildOnlyTestsApp
echo no | npm install -g nativescript.tgz --ignore-scripts > /dev/null && tns usage-reporting disable && tns error-reporting disable && --verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz
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 && --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 > /dev/null && grunt runOnlyTestsApp --verbose --platform=Android --modulesPath=./bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz
- node ./build/travis-scripts/check-testrun-broken.js --emuPId=.*emulator.* --avd=$AVD_NAME --showEmu=false
- adb pull /storage/sdcard/Documents/test-results.xml && - node ./build/travis-scripts/check-testrun-broken.js
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: before_deploy:
- mv bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz ../.deploymentpackage - mv bin/dist/$PACKAGE_NAME-$FULL_PACKAGE_VERSION.tgz ../.deploymentpackage
- mv build ../ - mv build ../
- cd .. - cd ..
- rm -rf NativeScript - rm -rf NativeScript
- tar -zxvf .deploymentpackage - tar -zxvf .deploymentpackage
- mv package $PACKAGE_NAME - mv package $PACKAGE_NAME
- cd $PACKAGE_NAME - cd $PACKAGE_NAME
- rm ../.deploymentpackage - rm ../.deploymentpackage
- mv ../build ./ - mv ../build ./
- node ./build/travis-scripts/add-publishConfig.js next - node ./build/travis-scripts/add-publishConfig.js next
deploy: deploy:
provider: npm provider: npm
email: nativescript@telerik.com email: nativescript@telerik.com
@ -65,4 +66,4 @@ deploy:
branch: master branch: master
skip_cleanup: true skip_cleanup: true
api_key: api_key:
secure: j2gE5jnGSuCFy7s3pDB6Or2j+vhlRYIlSSB1mDI7R5PvpV0kWr8yE1rLnyqeb0pI7WY/36SV/0NZCClJhlrZFvd7QvaP3+55cGX3ijmsDp8WxfQRyHppA9RZuMFujG7swFr/s0RmoYgO9mYNe46lJTX8m0HZeNN2qlAC7LDD3x8= secure: VJksODKcxXltNTU1Unv4V3qZMI5rrAupuxnCUpIBxks6azi6/FvcW6ctMOj5wPQ9cQKPa8SgaKF/ksyueTmcUt+RznBWbGJ3lxe+6MF0Uk7OI3M3Ga8Ke/21KcZ1oIysgZ0JGCmyR9iAIoSHK1KarIYfiYo9dGWOSuDkqJzLTjk=