Skip to content

Commit bfe89f9

Browse files
author
chupei
committed
network chaos test
1 parent 95df6a4 commit bfe89f9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: objective-c
22
osx_image: xcode11
3+
sudo: true
34

45
before_install:
56
- rvm install 2.6.4
@@ -10,13 +11,16 @@ before_install:
1011
- rm -rf ~/.cocoapods
1112
- pod setup
1213
- pod install --verbose --no-repo-update
14+
- gem install xcpretty
15+
1316

1417
before_script:
1518
- export QINIU_TEST_ENV="travis"
1619

1720
script:
18-
- xcodebuild test -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_iOS -configuration Release -destination 'platform=iOS Simulator,OS=12.4,name=iPhone Xs Max' -enableCodeCoverage YES
19-
- xcodebuild test -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_Mac -configuration Release -destination 'platform=macOS,arch=x86_64'
21+
- ifconfig
22+
- xcodebuild test -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_iOS -configuration Release -destination 'platform=iOS Simulator,OS=13.4.1,name=iPhone 11' -only-testing:QiniuSDK_iOSTests/QNFormUploadTest/testUp | xcpretty
23+
#- xcodebuild test -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_Mac -configuration Release -destination 'platform=macOS,arch=x86_64'
2024

2125
after_success:
2226
- bash <(curl -s https://codecov.io/bash)

QiniuSDKTests/QNTestConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
// Copyright (c) 2014年 Qiniu. All rights reserved.
77
//
88

9-
static NSString *const g_token = @"bjtWBQXrcxgo7HWwlC_bgHg81j352_GhgBGZPeOW:bx3SEGbnAAk-AwUEzDP866Ydqio=:eyJzY29wZSI6InNodWFuZ2h1bzEiLCJkZWFkbGluZSI6MTU4OTMzOTc0M30K";
9+
static NSString *const g_token = @"fjxKGs5obR6WYH39j3wnHJN-kRQvFBURvsxLFp3D:NtAkaweFs_zfExSNY3mzIEOpeuI=:eyJzY29wZSI6InB1YmxpY2J1Y2tldF96MCIsImlzUHJlZml4YWxTY29wZSI6MCwiZGVhZGxpbmUiOjE1ODkzNTY0ODEsImFjY2Vzc2VzIjpudWxsfQ==";

0 commit comments

Comments
 (0)