@@ -6,32 +6,32 @@ matrix:
6
6
include :
7
7
- env : TEST_SUITE=danger
8
8
- env : TEST_SUITE=jsfm
9
- # - env: TEST_SUITE=ios
10
- # language: objective-c
11
- # - env: TEST_SUITE=android ABI=armeabi-v7a
12
- # language: android
13
- # dist: trusty
14
- # jdk: oraclejdk8
15
- # android:
16
- # components:
17
- # - android-26
18
- # - extra-android-m2repository
19
- # - env: TEST_SUITE=android ABI=arm64-v8a
20
- # language: android
21
- # dist: trusty
22
- # jdk: oraclejdk8
23
- # android:
24
- # components:
25
- # - android-26
26
- # - extra-android-m2repository
27
- # - env: TEST_SUITE=android ABI=x86
28
- # language: android
29
- # dist: trusty
30
- # jdk: oraclejdk8
31
- # android:
32
- # components:
33
- # - android-26
34
- # - extra-android-m2repository
9
+ - env : TEST_SUITE=ios
10
+ language : objective-c
11
+ - env : TEST_SUITE=android ABI=armeabi-v7a
12
+ language : android
13
+ dist : trusty
14
+ jdk : oraclejdk8
15
+ android :
16
+ components :
17
+ - android-26
18
+ - extra-android-m2repository
19
+ - env : TEST_SUITE=android ABI=arm64-v8a
20
+ language : android
21
+ dist : trusty
22
+ jdk : oraclejdk8
23
+ android :
24
+ components :
25
+ - android-26
26
+ - extra-android-m2repository
27
+ - env : TEST_SUITE=android ABI=x86
28
+ language : android
29
+ dist : trusty
30
+ jdk : oraclejdk8
31
+ android :
32
+ components :
33
+ - android-26
34
+ - extra-android-m2repository
35
35
36
36
# static check
37
37
- env : STATIC_CODE_ANALYSIS=true CHECK_C=true
@@ -99,46 +99,46 @@ install:
99
99
script :
100
100
- |
101
101
case $TEST_SUITE in
102
- # "android")
103
- # case $ABI in
104
- # "armeabi-v7a" )
105
- # GRADLE_ABI="-PsupportArmeabi-v7a=true -PsupportArm64-v8a=false -PsupportX86=false"
106
- # ;;
107
- # "arm64-v8a" )
108
- # GRADLE_ABI="-PsupportArmeabi-v7a=false -PsupportArm64-v8a=true -PsupportX86=false"
109
- # ;;
110
- # "x86" )
111
- # GRADLE_ABI="-PsupportArmeabi-v7a=false -PsupportArm64-v8a=false -PsupportX86=true"
112
- # ;;
113
- # "*" )
114
- # GRADLE_ABI=""
115
- # ;;
116
- # esac
102
+ "android")
103
+ case $ABI in
104
+ "armeabi-v7a" )
105
+ GRADLE_ABI="-PsupportArmeabi-v7a=true -PsupportArm64-v8a=false -PsupportX86=false"
106
+ ;;
107
+ "arm64-v8a" )
108
+ GRADLE_ABI="-PsupportArmeabi-v7a=false -PsupportArm64-v8a=true -PsupportX86=false"
109
+ ;;
110
+ "x86" )
111
+ GRADLE_ABI="-PsupportArmeabi-v7a=false -PsupportArm64-v8a=false -PsupportX86=true"
112
+ ;;
113
+ "*" )
114
+ GRADLE_ABI=""
115
+ ;;
116
+ esac
117
117
118
- # hasAndroidFile=$(npm run danger -- run --dangerfile ./dangerfile-android.js)
119
- # echo "The value of hasAndroidFile is ${hasAndroidFile}"
120
- # if [[ "$hasAndroidFile" =~ "hasAndroidFile" ]]; then
121
- # cd android
122
- # ./gradlew clean install -PbuildRuntimeApi=true ${GRADLE_ABI} --info
123
- # ./gradlew install -PbuildRuntimeApi=false ${GRADLE_ABI} --info
124
- # fi
125
- # ;;
118
+ hasAndroidFile=$(npm run danger -- run --dangerfile ./dangerfile-android.js)
119
+ echo "The value of hasAndroidFile is ${hasAndroidFile}"
120
+ if [[ "$hasAndroidFile" =~ "hasAndroidFile" ]]; then
121
+ cd android
122
+ ./gradlew clean install -PbuildRuntimeApi=true ${GRADLE_ABI} --info
123
+ ./gradlew install -PbuildRuntimeApi=false ${GRADLE_ABI} --info
124
+ fi
125
+ ;;
126
126
"jsfm" )
127
127
npm run danger -- run --dangerfile ./dangerfile-jsfm.js
128
128
;;
129
129
"danger" )
130
130
npm run danger -- run --dangerfile ./dangerfile.js
131
131
;;
132
- # "ios" )
133
- # hasIosFile=$(npm run danger -- run --dangerfile ./dangerfile-ios.js)
134
- # echo "The value of hasIosFile is ${hasIosFile}"
135
- # if [[ "$hasIosFile" =~ "hasIosFile" ]]; then
136
- # # build WeexSDK and run WeexSDKTests
137
- # xcodebuild -project ios/sdk/WeexSDK.xcodeproj test -scheme WeexSDKTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" | egrep -A 5 "(error|warning)
138
- # # build WeexDemo and run WeexDemo test
139
- # xcodebuild -workspace weex-playground/ios/WeexDemo.xcworkspace test -scheme WeexDemo CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" | egrep -A 5 "(error|warning)
140
- # fi
141
- # ;;
132
+ "ios" )
133
+ hasIosFile=$(npm run danger -- run --dangerfile ./dangerfile-ios.js)
134
+ echo "The value of hasIosFile is ${hasIosFile}"
135
+ if [[ "$hasIosFile" =~ "hasIosFile" ]]; then
136
+ # build WeexSDK and run WeexSDKTests
137
+ xcodebuild -project ios/sdk/WeexSDK.xcodeproj test -scheme WeexSDKTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" | egrep -A 5 "(error|warning)
138
+ # build WeexDemo and run WeexDemo test
139
+ xcodebuild -workspace weex-playground/ios/WeexDemo.xcworkspace test -scheme WeexDemo CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" | egrep -A 5 "(error|warning)
140
+ fi
141
+ ;;
142
142
esac
143
143
144
144
if [[ ("${STATIC_CODE_ANALYSIS}" = "true") && ("${CHECK_C}" = "true") ]]; then
0 commit comments