File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 1
1
language : objective-c
2
- env :
3
- - BUILD_SCHEME="SQLite iOS"
4
- - BUILD_SCHEME="SQLite Mac"
2
+ matrix :
3
+ include :
4
+ - env : BUILD_SCHEME="SQLite iOS"
5
+ - env : BUILD_SCHEME="SQLite Mac"
6
+ - env : VALIDATOR_SUBSPEC="none"
7
+ - env : VALIDATOR_SUBSPEC="standard"
8
+ - env : VALIDATOR_SUBSPEC="standalone"
5
9
before_install :
6
10
- gem install xcpretty --no-document
7
11
script :
8
- - make test
9
- - cd CocoaPodsTests && make test
12
+ - ./run-tests.sh
10
13
osx_image : xcode7.3
Original file line number Diff line number Diff line change @@ -13,13 +13,19 @@ def test_validate_project
13
13
14
14
def validator
15
15
@validator ||= TestRunningValidator . new ( podspec , [ ] ) . tap do |validator |
16
+ subspec = ENV [ "VALIDATOR_SUBSPEC" ]
16
17
validator . test_files = Dir [ "#{ project_test_dir } /*.swift" ]
17
18
validator . config . verbose = true
18
19
validator . no_clean = true
19
20
validator . use_frameworks = true
20
21
validator . fail_fast = true
21
22
validator . local = true
22
23
validator . allow_warnings = true
24
+ if subspec == "none"
25
+ validator . no_subspecs = true
26
+ else
27
+ validator . only_subspec = subspec
28
+ end
23
29
end
24
30
end
25
31
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -ev
3
+ if [ -n " $BUILD_SCHEME " ]; then
4
+ make test
5
+ elif [ -n " $VALIDATOR_SUBSPEC " ]; then
6
+ cd CocoaPodsTests && make test
7
+ fi
You can’t perform that action at this time.
0 commit comments