Permalink
Browse files

Adds pod lints to CI.

  • Loading branch information...
kzaher committed Sep 19, 2018
1 parent 04183f6 commit aeb4772ab69d8b98be9540cc51a48a036487440e
Showing with 49 additions and 8 deletions.
  1. +49 −8 .travis.yml
View
@@ -32,6 +32,39 @@ matrix:
- os: linux
env: TEST=iOS-Example
include:
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4 RxSwift.podspec"
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4 RxCocoa.podspec"
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4 RxBlocking.podspec"
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4 RxTest.podspec"
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4.2 RxSwift.podspec"
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4.2 RxCocoa.podspec"
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4.2 RxBlocking.podspec"
- osx_image: xcode10
os: osx
env: BUILD="pod lib lint --swift-version=4.2 RxTest.podspec"
notifications:
slack: rxswift:3ykt2Z61f8GkdvhCZTYPduOL
email: false
@@ -43,19 +76,27 @@ install:
script:
- if [[ `uname` == "Linux" ]] ; then
swiftenv install swift-4.0 || true;
swiftenv install swift-4.2 || true;
fi
- if [[ "${DANGER}" -eq 1 ]] ; then
bundle install --path vendor/bundle;
bundle exec danger --verbose;
-
if [[ ! -z "${BUILD}" ]] ; then
if [[ "${BUILD}" =~ ^pod[[:space:]].* ]]; then
gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet;
fi;
eval "${BUILD}";
else
if [[ `uname` == "Darwin" ]] ; then
if [[ "${DANGER}" -eq 1 ]] ; then
bundle install --path vendor/bundle;
bundle exec danger --verbose;
else
if [[ `uname` == "Darwin" ]] ; then
xcodebuild -version;
xcodebuild -showsdks;
fi;
swift --version;
TRAVIS=1 ./scripts/all-tests.sh "${TEST}";
fi;
swift --version;
TRAVIS=1 ./scripts/all-tests.sh "${TEST}";
fi
fi;
after_success:
- sleep 5 # workaround https://github.com/travis-ci/travis-ci/issues/4725

0 comments on commit aeb4772

Please sign in to comment.