File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 9
9
- LC_CTYPE=en_US.UTF-8
10
10
- LANG=en_US.UTF-8
11
11
matrix :
12
- - TEST_TYPE=ios
13
- - TEST_TYPE=osx
14
- - TEST_TYPE=deployment
15
- - TEST_TYPE=starters
16
- - TEST_TYPE=podspecs
12
+ - TEST_TYPE=iOS
13
+ - TEST_TYPE=OSX
14
+ - TEST_TYPE=Deployment
15
+ - TEST_TYPE=Starters
16
+ - TEST_TYPE=CocoaPods
17
+ - TEST_TYPE=Carthage
17
18
git :
18
19
submodules : false
19
20
before_install :
@@ -22,9 +23,15 @@ install:
22
23
- |
23
24
if [ -n "$TEST_TYPE" ]; then
24
25
bundle install
26
+ if [ "$TEST_TYPE" == "Carthage" ]; then
27
+ brew update
28
+ brew install carthage
29
+ fi
25
30
fi
26
31
script :
27
- - bundle exec rake test:$TEST_TYPE
32
+ - |
33
+ TEST_TYPE=$(echo "$TEST_TYPE" | tr '[:upper:]' '[:lower:]')
34
+ bundle exec rake test:$TEST_TYPE
28
35
after_success :
29
36
- |
30
37
if [ "$TEST_TYPE" = "ios" ] || [ "$TEST_TYPE" = "osx" ]; then
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ namespace :test do
419
419
end
420
420
421
421
desc 'Run Podspec Lint'
422
- task :podspecs do |_ |
422
+ task :cocoapods do |_ |
423
423
podspecs = [ 'Parse.podspec' ]
424
424
results = [ ]
425
425
system ( "pod repo update --silent" )
@@ -434,4 +434,12 @@ namespace :test do
434
434
end
435
435
end
436
436
end
437
+
438
+ desc 'Run Carthage Build'
439
+ task :carthage do |_ |
440
+ if !system ( 'carthage build --no-skip-current' )
441
+ puts 'Carthage Tests Failed!'
442
+ exit ( 1 )
443
+ end
444
+ end
437
445
end
You can’t perform that action at this time.
0 commit comments