.travis.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: objective-c
  2. osx_image: xcode9.4
  3. env:
  4. global:
  5. - LC_CTYPE=en_US.UTF-8
  6. - LANG=en_US.UTF-8
  7. notifications:
  8. email: false
  9. before_install:
  10. - env
  11. - locale
  12. - gem install cocoapods --no-rdoc --no-ri --no-document --quiet
  13. - gem install xcpretty --no-rdoc --no-ri --no-document --quiet
  14. - pod --version
  15. - pod setup --silent > /dev/null
  16. - pod repo update --silent
  17. - xcpretty --version
  18. - xcodebuild -version
  19. - xcodebuild -showsdks
  20. script:
  21. - set -o pipefail
  22. - echo Check if the library described by the podspec can be built
  23. - pod lib lint --allow-warnings
  24. - echo Build as static library
  25. - xcodebuild build -project SVGKit-iOS.xcodeproj -scheme 'SVGKit-iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
  26. - echo Build as dynamic frameworks
  27. - xcodebuild build clean -project SVGKit-iOS.xcodeproj -scheme 'SVGKitFramework-iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
  28. - xcodebuild build clean -project SVGKit-iOS.xcodeproj -scheme 'SVGKitFramework-tvOS' -sdk appletvsimulator -configuration Debug | xcpretty -c
  29. - xcodebuild build clean -project SVGKit-iOS.xcodeproj -scheme 'SVGKitFramework-OSX' -sdk macosx -configuration Debug | xcpretty -c
  30. - echo Build the Demo apps
  31. - xcodebuild build -project Demo-iOS.xcodeproj -scheme 'Demo-iOS' -configuration Debug -destination 'name=iPhone 8' | xcpretty -c
  32. - xcodebuild build -project Demo-OSX.xcodeproj -scheme 'Demo-OSX' -sdk macosx -configuration Debug | xcpretty -c