diff --git a/.gitignore b/.gitignore index 5bf4abc..d502957 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ Carthage/Build # `pod install` in .travis.yml # Pods/ + +# SwiftPM +.build diff --git a/.travis.yml b/.travis.yml index 7876a16..94a75c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,37 @@ -# references: -# * https://www.objc.io/issues/6-build-tools/travis-ci/ -# * https://github.com/supermarin/xcpretty#usage +language: swift +osx_image: xcode11 + +env: + global: + - LC_CTYPE=en_US.UTF-8 + - LANG=en_US.UTF-8 + +addons: + ssh_known_hosts: github.com + +notifications: + email: false + +before_install: + - env + - locale + - gem install cocoapods --no-rdoc --no-ri --no-document --quiet + - gem install xcpretty --no-rdoc --no-ri --no-document --quiet + - pod --version + - pod setup --silent > /dev/null + - pod repo update --silent + - xcpretty --version + - xcodebuild -version + - xcodebuild -showsdks -osx_image: xcode7.3 -language: objective-c -# cache: cocoapods -# podfile: Example/Podfile -# before_install: -# - gem install cocoapods # Since Travis is not always on latest version -# - pod install --project-directory=Example script: -- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SDWebImageSwiftUI.xcworkspace -scheme SDWebImageSwiftUI-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty -- pod lib lint + - set -o pipefail + + - echo Check if the library described by the podspec can be built + - pod lib lint --allow-warnings + + - echo Build example + - pod install --project-directory=Example + - xcodebuild build -workspace Example/SDWebImageSwiftUI.xcworkspace -scheme SDWebImageSwiftUIDemo -sdk iphonesimulator -destination 'name=iPhone 8' ONLY_ACTIVE_ARCH=NO | xcpretty -c + + - swift build \ No newline at end of file diff --git a/Example/SDWebImageSwiftUI.xcodeproj/xcshareddata/xcschemes/SDWebImageSwiftUIDemo.xcscheme b/Example/SDWebImageSwiftUI.xcodeproj/xcshareddata/xcschemes/SDWebImageSwiftUIDemo.xcscheme new file mode 100644 index 0000000..436cb5e --- /dev/null +++ b/Example/SDWebImageSwiftUI.xcodeproj/xcshareddata/xcschemes/SDWebImageSwiftUIDemo.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +