Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
update npm to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
wrmswindmill committed Jul 30, 2019
1 parent 1943636 commit e91e1e0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ script:
;;
esac
hasAndroidFile=$(npm run danger -- run --dangerfile ./dangerfile-android.js)
hasAndroidFile=$(yarn danger run --dangerfile ./dangerfile-android.js)
echo "The value of hasAndroidFile is ${hasAndroidFile}"
if [[ "$hasAndroidFile" =~ "hasAndroidFile" ]]; then
cd android
Expand All @@ -131,13 +131,13 @@ script:
fi
;;
"jsfm" )
npm run danger -- run --dangerfile ./dangerfile-jsfm.js
yarn danger run --dangerfile ./dangerfile-jsfm.js
;;
"danger" )
npm run danger -- run --dangerfile ./dangerfile.js
yarn danger run --dangerfile ./dangerfile.js
;;
"ios" )
hasIosFile=$(npm run danger -- run --dangerfile ./dangerfile-ios.js)
hasIosFile=$(yarn danger run --dangerfile ./dangerfile-ios.js)
echo "The value of hasIosFile is ${hasIosFile}"
if [[ "$hasIosFile" =~ "hasIosFile" ]]; then
# build WeexSDK and run WeexSDKTests
Expand All @@ -150,7 +150,7 @@ script:
esac
if [[ ("$TEST_SUITE" = "static_code_analysis") && ("${OCLINT}" = "true") ]]; then
hasCFile=$(npm run danger -- run --dangerfile ./dangerfile-static-check.js)
hasCFile=$(yarn danger run --dangerfile ./dangerfile-static-check.js)
echo "The value of hasCFile is ${hasCFile}"
if [[ "$hasCFile" =~ "hasCFile" ]]; then
echo "hasCFile"
Expand All @@ -172,12 +172,12 @@ script:
-max-priority-2=15000 \
-max-priority-3=15000 > oclint.log
export COMMAND="cat ios/sdk/oclint.log | grep -i \"P[1|2]\""
cd ../../ && npm run danger -- run --dangerfile ./dangerfile-output.js
cd ../../ && yarn danger run --dangerfile ./dangerfile-output.js
fi
fi
if [[ ("$TEST_SUITE" = "static_code_analysis") && ("${ANDROID_LINT}" = "true") ]]; then
hasAndroidFile=$(npm run danger -- run --dangerfile ./dangerfile-static-check.js)
hasAndroidFile=$(yarn danger run --dangerfile ./dangerfile-static-check.js)
echo "The value of hasAndroidFile is ${hasAndroidFile}"
if [[ "$hasAndroidFile" =~ "hasAndroidFile" ]]; then
# format code using google-java-format at first
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"core-js": "^2.4.0",
"semver": "^5.1.0",
"weex-rax-framework": "0.4.20",
"weex-vue-framework": "2.5.16-weex.5"
"weex-vue-framework": "2.5.16-weex.5",
"yarn": "^1.17.3"
},
"devDependencies": {
"babel-core": "^6.17.0",
Expand Down

0 comments on commit e91e1e0

Please sign in to comment.