.travis.yml 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. language: objective-c
  2. osx_image: beta-xcode6.3
  3. env:
  4. global:
  5. - LC_CTYPE=en_US.UTF-8
  6. - LANG=en_US.UTF-8
  7. matrix:
  8. - DESTINATION="OS=8.1,name=iPhone 5S" SCHEME="Alamofire iOS" SDK=iphonesimulator8.3 BUILD_EXAMPLE="YES" POD_LINT="NO"
  9. - DESTINATION="OS=8.2,name=iPhone 6" SCHEME="Alamofire iOS" SDK=iphonesimulator8.3 BUILD_EXAMPLE="YES" POD_LINT="NO"
  10. - DESTINATION="OS=8.3,name=iPhone 6 Plus" SCHEME="Alamofire iOS" SDK=iphonesimulator8.3 BUILD_EXAMPLE="YES" POD_LINT="NO"
  11. - DESTINATION="arch=x86_64" SCHEME="Alamofire OSX" SDK=macosx10.10 BUILD_EXAMPLE="NO" POD_LINT="YES"
  12. before_install:
  13. - gem install cocoapods --no-rdoc --no-ri --no-document --quiet
  14. - gem install xcpretty --no-rdoc --no-ri --no-document --quiet
  15. script:
  16. - set -o pipefail
  17. - xcodebuild -project Alamofire.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION"
  18. -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c
  19. - xcodebuild -project Alamofire.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION"
  20. -configuration Release ONLY_ACTIVE_ARCH=NO test | xcpretty -c
  21. - if [ $BUILD_EXAMPLE == "YES" ]; then
  22. xcodebuild -project "iOS Example.xcodeproj" -scheme "iOS Example" -sdk "$SDK" -destination "$DESTINATION"
  23. -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
  24. fi
  25. - if [ $BUILD_EXAMPLE == "YES" ]; then
  26. xcodebuild -project "iOS Example.xcodeproj" -scheme "iOS Example" -sdk "$SDK" -destination "$DESTINATION"
  27. -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
  28. fi
  29. - if [ $POD_LINT == "YES" ]; then
  30. pod lib lint --quick;
  31. fi