language: objective-c
osx_image: xcode7

before_install:
    - gem install xcpretty-travis-formatter --no-rdoc --no-ri --no-document --quiet

install:
    - git submodule update -i --recursive

script:
    - set -o pipefail && xcodebuild -project Swiftz.xcodeproj -scheme Swiftz -sdk macosx ONLY_ACTIVE_ARCH=NO clean build test | xcpretty -c -f `xcpretty-travis-formatter`
    - 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`

language: objective-c
osx_image: xcode7

env:
    - TEST_CONFIG="RELEASE"
#   - TEST_CONFIG="CARTHAGE"
    - TEST_CONFIG="PODS"

before_install:
    - if [[ "$TEST_CONFIG" == "RELEASE" ]]; then gem install xcpretty-travis-formatter --no-rdoc --no-ri --no-document --quiet; fi
    - if [[ "$TEST_CONFIG" == "CARTHAGE" ]]; then brew install carthage; fi

install:
    - if [[ "$TEST_CONFIG" == "RELEASE" ]]; then git submodule update -i --recursive; fi

script:
    - set -o pipefail
    - 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
    - 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
    - if [[ "$TEST_CONFIG" == "CARTHAGE" ]]; then carthage update --verbose --no-use-binaries && carthage build --no-skip-current --configuration Debug; fi
    - if [[ "$TEST_CONFIG" == "PODS" ]]; then pod lib lint; fi

Add pods to CI build
Add pods to CI build
