.travis.yml 1.7 KB

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