8000 [CI] Fix GitHub Actions breakage and restore Travis build matrix for older Xcode versions by ikesyo · Pull Request #937 · Quick/Quick · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[CI] Fix GitHub Actions breakage and restore Travis build matrix for older Xcode versions #937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ on:
jobs:
xcode:
name: Xcode ${{ matrix.xcode }}
runs-on: macOS-10.14
runs-on: macOS-latest
strategy:
matrix:
xcode: [10.1, 10.3, 11]
xcode: [11, 11.1, 11.2]
steps:
- uses: actions/checkout@v1
with:
Expand All @@ -27,10 +27,10 @@ jobs:

swiftpm_darwin:
name: SwiftPM, Darwin, Xcode ${{ matrix.xcode }}
runs-on: macOS-10.14
runs-on: macOS-latest
strategy:
matrix:
xcode: [10.1, 10.3, 11]
xcode: [11, 11.1, 11.2]
steps:
- uses: actions/checkout@v1
- run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode }}.app'
Expand Down
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ matrix:
script:
- PODSPEC=1 ./script/travis-script-macos
- bundle exec danger
- &xcode
name: Xcode 10.1 / Swift 4.2
os: osx
env:
- XCODE_ACTION="build-for-testing test-without-building"
osx_image: xcode10.1
script:
- PLATFORM=macos ./script/travis-script-macos
- PLATFORM=macos_static ./script/travis-script-macos
- PLATFORM=ios ./script/travis-script-macos
- PLATFORM=tvos ./script/travis-script-macos
- <<: *xcode
name: Xcode 10.3 / Swift 5.0
osx_image: xcode10.3
- &swiftpm_darwin
name: SwiftPM / Darwin / Swift 4.2
os: osx
osx_image: xcode10.1
script: PLATFORM=swiftpm ./script/travis-script-macos
- <<: *swiftpm_darwin
name: SwiftPM / Darwin / Swift 5.0
osx_image: xcode10.3
- &swiftpm_linux
name: SwiftPM / Linux / Swift 4.2.4
os: linux
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace "test" do
desc "Run unit tests for all iOS targets"
task :ios do |t|
run "set -o pipefail && xcodebuild -workspace Quick.xcworkspace -scheme Quick-iOS -destination 'generic/platform=iOS' OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' clean build | xcpretty"
run "set -o pipefail && xcodebuild -workspace Quick.xcworkspace -scheme Quick-iOS -destination 'platform=iOS Simulator,name=iPhone 6' OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' clean #{xcode_action} | xcpretty"
run "set -o pipefail && xcodebuild -workspace Quick.xcworkspace -scheme Quick-iOS -destination 'platform=iOS Simulator,name=iPhone 8' OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' clean #{xcode_action} | xcpretty"
end

desc "Run unit tests for all tvOS targets"
Expand Down
0