-
Notifications
You must be signed in to change notification settings - Fork 57
/
.travis.yml
38 lines (35 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: objective-c
xcode_project: WechatKit.xcodeproj
osx_image: xcode11
xcode_scheme: WechatKit
env:
matrix:
- TEST_TYPE=iOS
- TEST_TYPE=PODLINT
# before_install:
# # - brew upgrade carthage
# # - brew update
# # - brew install swiftlint
# # - brew install carthage
# # - gem install cocoapods
# - |
# if [ "$TEST_TYPE" = PODLINT ]; then
# gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
# fi
install:
# - |
# if [ "$TEST_TYPE" = iOS ]; then
# carthage bootstrap --platform ios --verbose
# fi
script:
- |
if [ "$TEST_TYPE" = iOS ]; then
xcodebuild -scheme WechatKit -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
elif [ "$TEST_TYPE" = PODLINT ]; then
pod lib lint --allow-warnings --verbose
fi
# - cd demo
# - carthage update --platform ios
# - xctool -project carthage.xcodeproj -scheme demo -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
# - pod install
# - xctool -workspace pod.xcworkspace -scheme pod -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO