Skip to content

Commit c5dc892

Browse files
committed
Add pods to CI build
1 parent 7ba93e3 commit c5dc892

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.travis.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
language: objective-c
22
osx_image: xcode7
33

4+
env:
5+
- TEST_CONFIG="RELEASE"
6+
# - TEST_CONFIG="CARTHAGE"
7+
- TEST_CONFIG="PODS"
8+
49
before_install:
5-
- gem install xcpretty-travis-formatter --no-rdoc --no-ri --no-document --quiet
10+
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then gem install xcpretty-travis-formatter --no-rdoc --no-ri --no-document --quiet; fi
11+
- if [[ "$TEST_CONFIG" == "CARTHAGE" ]]; then brew install carthage; fi
612

713
install:
8-
- git submodule update -i --recursive
14+
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then git submodule update -i --recursive; fi
915

1016
script:
11-
- set -o pipefail && xcodebuild -project Swiftz.xcodeproj -scheme Swiftz -sdk macosx ONLY_ACTIVE_ARCH=NO clean build test | xcpretty -c -f `xcpretty-travis-formatter`
12-
- set -o pipefail && xcodebuild -project Swiftz.xcodeproj -scheme Swiftz-iOS -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO clean build test | xcpretty -c -f `xcpretty-travis-formatter`
17+
- set -o pipefail
18+
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then xcodebuild -project Swiftz.xcodeproj -scheme Swiftz -sdk macosx ONLY_ACTIVE_ARCH=NO clean build test | xcpretty -c -f `xcpretty-travis-formatter`; fi
19+
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then xcodebuild -project Swiftz.xcodeproj -scheme Swiftz-iOS -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO clean build test | xcpretty -c -f `xcpretty-travis-formatter`; fi
20+
- if [[ "$TEST_CONFIG" == "CARTHAGE" ]]; then carthage update --verbose --no-use-binaries && carthage build --no-skip-current --configuration Debug; fi
21+
- if [[ "$TEST_CONFIG" == "PODS" ]]; then pod lib lint; fi

0 commit comments

Comments
 (0)