Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

Commit

Permalink
Support multiple platforms for multiple Swift versions (#19)
Browse files Browse the repository at this point in the history
* [VCD-19]: Reconfigures project

* [VCD-19]: Removes Objective-C stuff

* [VCD-19]: Updates CI & scripts

* [VCD-19]: Adds bundle install step

* [VCD-19]: Updates Ruby dependencies

* [VCD-19]: Updates Fastfile destinations

* [VCD-19]: Fixes bug with pipeline template

* [VCD-19]: Changes scan to use destination value

* [VCD-19]: Changes to 9.3

* [VCD-19]: Removes slather - its just the worst.

* [VCD-19]: Attempts to add Codecov support

* [VCD-19]: No idea how Codecov is supposed to work
  • Loading branch information
danthorpe authored Aug 31, 2016
1 parent 9aa7dd0 commit a55b6ef
Show file tree
Hide file tree
Showing 20 changed files with 336 additions and 1,483 deletions.
26 changes: 14 additions & 12 deletions .ci/buildkite/pipeline.template.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
steps:
-
name: ":muscle: Lint"
name: "Lint"
command: .ci/scripts/lint
agents:
iOS-Simulator: false
swift: "$BUILDKITE_AGENT_META_DATA_SWIFT"

-
name: ":fastlane: Test Mac OS X"
name: "Mac"
command: .ci/scripts/test-osx
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
iOS-Simulator: false
swift: "$BUILDKITE_AGENT_META_DATA_SWIFT"
-
name: ":fastlane: Test iOS"
name: "iOS"
command: .ci/scripts/test-ios
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
-
type: "waiter"
-
name: ":muscle: Send Coverage"
command: .ci/scripts/send-coverage
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
iOS-Simulator: true
swift: "$BUILDKITE_AGENT_META_DATA_SWIFT"
env:
FL_SLATHER_BUILDKITE_ENABLED: true
FL_SLATHER_COVERALLS_ENABLED: true
2 changes: 1 addition & 1 deletion .ci/buildkite/upload
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -eu

# Makes sure all the steps run on this same agent
sed "s/\$BUILDKITE_AGENT_META_DATA_NAME/$BUILDKITE_AGENT_META_DATA_NAME/" .ci/buildkite/pipeline.template.yml
sed "s/\$BUILDKITE_AGENT_META_DATA_SWIFT/$BUILDKITE_AGENT_META_DATA_SWIFT/" .ci/buildkite/pipeline.template.yml
2 changes: 1 addition & 1 deletion .ci/scripts/lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle exec fastlane lint
bundle install --quiet && bundle exec fastlane lint
4 changes: 0 additions & 4 deletions .ci/scripts/send-coverage

This file was deleted.

2 changes: 1 addition & 1 deletion .ci/scripts/test-ios
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle exec fastlane ios test
bundle install --quiet && bundle exec fastlane ios test

2 changes: 1 addition & 1 deletion .ci/scripts/test-osx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle exec fastlane mac test
bundle install --quiet && bundle exec fastlane mac test
7 changes: 7 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
comment:
layout: header, changes, diff
coverage:
ignore:
- Tests/.*
status:
patch: false
37 changes: 18 additions & 19 deletions .fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,29 @@ end

platform :ios do

desc "Runs all the tests"
lane :test do
desc "Runs all the tests"
lane :test do

scan(
scheme: "ValueCoding-iOS",
output_directory: ".ci/xcodebuild-data/",
xcargs: "-derivedDataPath .ci/xcodebuild-data/"
)

end

scan(
project: "ValueCoding.xcodeproj",
scheme: "ValueCoding",
destination: "platform=iOS Simulator,OS=9.3,name=iPhone 6s",
code_coverage: true
)

end
end

platform :mac do

desc "Runs all the tests"
lane :test do
desc "Runs all the tests"
lane :test do

scan(
scheme: "ValueCoding-OSX",
output_directory: ".ci/xcodebuild-data/",
xcargs: "-derivedDataPath .ci/xcodebuild-data/"
)
scan(
project: "ValueCoding.xcodeproj",
scheme: "ValueCoding",
device: "My Mac"
)

end

end
end
Loading

0 comments on commit a55b6ef

Please sign in to comment.