Skip to content
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SwiftPlate will generate Xcode projects for you in seconds, that support:
- [x] watchOS
- [x] tvOS
- [x] Linux
- [x] Travis CI (via Fastlane - Mac environment only)

Just run `swiftplate`, and you’ll be presented with a simple step-by-step guide:

Expand Down
1 change: 1 addition & 0 deletions Template/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/README.md
6 changes: 6 additions & 0 deletions Template/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: objective-c
osx_image: xcode8.3
before_install:
- gem update fastlane
script:
- fastlane test
69 changes: 69 additions & 0 deletions Template/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.16.0"

default_platform :ios

platform :ios do

desc "Builds the framework and runs all the tests"
lane :test do

# Prevent timeout issues
ENV["FASTLANE_XCODE_LIST_TIMEOUT"] = "120"

# Just build the watchOS target (no tests)
xcodebuild(
project: "{PROJECT}.xcodeproj",
scheme: "{PROJECT}-watchOS",
clean: true,
build: true
)

# Build and test the macOS target
scan(
project: "{PROJECT}.xcodeproj",
scheme: "{PROJECT}-macOS",
devices: [
# (deliberately empty, will use the mac this is running on)
],
clean: true,
skip_slack: true
)

# Build and test the iOS target
scan(
project: "{PROJECT}.xcodeproj",
scheme: "{PROJECT}-iOS",
devices: [
"iPhone SE",
# "iPhone 6",
# "iPhone 7 Plus",
],
clean: true,
skip_slack: true
)

# Build and test the tvOS target
scan(
project: "{PROJECT}.xcodeproj",
scheme: "{PROJECT}-tvOS",
devices: [
"Apple TV 1080p",
],
clean: true,
skip_slack: true
)
end
end