2019-04-25 00:04:38 +08:00
|
|
|
language: swift
|
|
|
|
osx_image: xcode10.2
|
2018-08-19 00:30:37 +08:00
|
|
|
|
2019-10-11 04:24:08 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/Library/Caches/Homebrew
|
|
|
|
- /usr/local/Homebrew
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- brew cleanup
|
|
|
|
|
2018-08-19 00:30:37 +08:00
|
|
|
install:
|
2019-04-25 00:04:38 +08:00
|
|
|
- brew update
|
|
|
|
- brew outdated swiftlint || brew upgrade swiftlint
|
2019-10-05 22:32:22 +08:00
|
|
|
- gem install xcpretty
|
2016-02-17 10:07:10 +08:00
|
|
|
|
|
|
|
script:
|
2018-08-19 00:30:37 +08:00
|
|
|
- swiftlint --strict
|
2019-10-05 22:32:22 +08:00
|
|
|
- xcodebuild clean build test -workspace Surge.xcworkspace -scheme Surge-iOS -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.1' | xcpretty
|
|
|
|
- xcodebuild clean build test -workspace Surge.xcworkspace -scheme Surge-macOS -destination 'platform=OS X,arch=x86_64' | xcpretty
|
|
|
|
- xcodebuild clean build test -workspace Surge.xcworkspace -scheme Surge-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 4K,OS=11.1' | xcpretty
|
|
|
|
- xcodebuild clean build -workspace Surge.xcworkspace -scheme Surge-watchOS -destination 'platform=watchOS Simulator,name=Apple Watch Series 3 - 42mm,OS=4.1' | xcpretty
|
|
|
|
- xcodebuild clean build -workspace Surge.xcworkspace -scheme SurgeBenchmarkTests-macOS -destination 'platform=OS X,arch=x86_64' | xcpretty
|
2019-09-25 17:22:38 +08:00
|
|
|
|