Skip to content

Commit

Permalink
Merge pull request #39 from jianstm/2.x
Browse files Browse the repository at this point in the history
2.x
  • Loading branch information
luoxiu authored Apr 6, 2019
2 parents 0d16c26 + 9cac1df commit b45944b
Show file tree
Hide file tree
Showing 47 changed files with 1,852 additions and 2,192 deletions.
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

4 changes: 2 additions & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
included:
- Sources
- Tests

disabled_rules:
- cyclomatic_complexity
- file_length
- function_body_length
- identifier_name

line_length: 200
- type_name
21 changes: 11 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@ branches:
- master

language: objective-c
osx_image: xcode10
osx_image: xcode10.2

env:
global:
- PROJECT="Schedule.xcodeproj"
- SCHEME="Schedule-Package"

matrix:
include:
- os: osx
env:
- SCHEME="Schedule-iOS"
- SDK="iphonesimulator12.0"
- DESTINATION="OS=12.0,name=iPhone X"
- SDK="iphonesimulator12.2"
- DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=12.2"
- os: osx
env:
- SCHEME="Schedule-macOS"
- SDK="macosx10.13"
- SDK="macosx10.14"
- DESTINATION="arch=x86_64"
- os: osx
env:
- SCHEME="Schedule-tvOS"
- SDK="appletvsimulator12.0"
- DESTINATION="OS=12.0,name=Apple TV 4K"
- os: linux
Expand All @@ -28,18 +30,17 @@ matrix:

before_install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
gem install xcpretty --no-rdoc --no-ri --no-document --quiet;
gem install xcpretty;
fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
fi

script:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
xcodebuild clean build test -project Schedule.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES | xcpretty;
xcodebuild clean build test -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES | xcpretty;
fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
swift build;
swift test;
fi

Expand Down
17 changes: 12 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
// swift-tools-version:4.2
// swift-tools-version:5.0

import PackageDescription

let package = Package(
name: "Schedule",
platforms: [
.macOS(.v10_12),
.iOS(.v10),
.tvOS(.v10),
.watchOS(.v3)
],
products: [
.library(name: "Schedule", targets: ["Schedule"]),
.executable(name: "ScheduleDemo", targets: ["ScheduleDemo"])
.library(name: "Schedule", targets: ["Schedule"])
],
targets: [
.target(name: "Schedule"),
.testTarget(name: "ScheduleTests", dependencies: ["Schedule"]),
.target(name: "ScheduleDemo", dependencies: ["Schedule"])
.testTarget(name: "ScheduleTests", dependencies: ["Schedule"])
],
swiftLanguageVersions: [
.v5
]
)
Loading

0 comments on commit b45944b

Please sign in to comment.