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

Commit d54f801

Browse files
committed
test
1 parent df518ad commit d54f801

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed

.travis.yml

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ matrix:
66
include:
77
- env: TEST_SUITE=danger
88
- 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
3535

3636
# static check
3737
- env: STATIC_CODE_ANALYSIS=true CHECK_C=true
@@ -99,46 +99,46 @@ install:
9999
script:
100100
- |
101101
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
117117
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+
;;
126126
"jsfm" )
127127
npm run danger -- run --dangerfile ./dangerfile-jsfm.js
128128
;;
129129
"danger" )
130130
npm run danger -- run --dangerfile ./dangerfile.js
131131
;;
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+
;;
142142
esac
143143
144144
if [[ ("${STATIC_CODE_ANALYSIS}" = "true") && ("${CHECK_C}" = "true") ]]; then

0 commit comments

Comments
 (0)