Skip to content

Commit 6872589

Browse files
Merge pull request #13 from SomeRandomiOSDev/1.2.0
1.2.0
2 parents a6b929e + dc4f7e4 commit 6872589

25 files changed

+536
-217
lines changed

.github/workflows/swift.yml

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
name: Swift
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
7-
8-
runs-on: macOS-latest
9-
7+
strategy:
8+
matrix:
9+
os: [macOS-latest, ubuntu-latest]
10+
swift: ["5.1"]
11+
runs-on: ${{ matrix.os }}
12+
env:
13+
SWIFT_VERSION: ${{ matrix.swift }}
14+
SWIFT_EXEC: .swiftenv/shims/swift
1015
steps:
1116
- uses: actions/checkout@v2
17+
- name: Install Swift
18+
run: |
19+
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
20+
~/.swiftenv/bin/swiftenv install $SWIFT_VERSION --skip-existing
21+
~/.swiftenv/bin/swiftenv rehash
1222
- name: Build
13-
run: swift build -v
14-
- name: Run Tests
15-
run: swift test -v
23+
run: |
24+
~/$SWIFT_EXEC --version
25+
~/$SWIFT_EXEC build -v
26+
- name: Test
27+
run: |
28+
~/$SWIFT_EXEC test -v

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Complex.xcodeproj/project.xcworkspace
1+
Complex.xcodeproj/project.xcworkspace/xcuserdata
22
Complex.xcodeproj/xcuserdata
33
.swiftpm
44
Carthage
55
gyb.pyc
66
.build
7-
Package.resolved
7+
IDEWorkspaceChecks.plist

.swiftlint.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ opt_in_rules:
5858
reporter: "xcode"
5959

6060
excluded:
61-
- Carthage
61+
- Tests/LinuxMain.swift
62+
- Tests/ComplexTests/XCTestManifests.swift
6263

6364
identifier_name:
6465
excluded:

.travis.yml

-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ os: osx
22
language: swift
33
osx_image: xcode11.3
44
xcode_project: Complex.xcodeproj
5-
addons:
6-
homebrew:
7-
packages:
8-
carthage
95

106
script:
11-
- carthage bootstrap
12-
137
- set -o pipefail && travis_retry xcodebuild -scheme "Complex" -destination "platform=iOS Simulator,name=iPhone 11 Pro Max" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
148
- set -o pipefail && travis_retry xcodebuild -scheme "Complex macOS" -destination "platform=macOS" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
159
- set -o pipefail && travis_retry xcodebuild -scheme "Complex tvOS" -destination "platform=tvOS Simulator,name=Apple TV 4K" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test

Cartfile.private

-1
This file was deleted.

Cartfile.resolved

-1
This file was deleted.

Complex.podspec

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "Complex"
4-
s.version = "1.1.1"
4+
s.version = "1.2.0"
55
s.summary = "Swift Complex Number"
66
s.description = <<-DESC
77
A lightweight framework designed for representing and working with complex numbers for iOS, macOS, tvOS, and watchOS.
@@ -18,8 +18,17 @@ Pod::Spec.new do |s|
1818

1919
s.source = { :git => "https://github.com/SomeRandomiOSDev/Complex.git", :tag => s.version.to_s }
2020
s.source_files = 'Sources/**/*.swift'
21-
s.frameworks = 'Foundation'
22-
s.swift_versions = ['4.0', '4.2', '5.0']
21+
s.swift_versions = ['4.2', '5.0']
2322
s.cocoapods_version = '>= 1.7.3'
23+
24+
s.test_spec 'Tests' do |ts|
25+
ts.ios.deployment_target = '8.0'
26+
ts.macos.deployment_target = '10.10'
27+
ts.tvos.deployment_target = '9.0'
28+
29+
ts.dependency 'Half', '~> 1.2'
30+
ts.source_files = 'Tests/ComplexTests/*Tests.swift',
31+
'Tests/ComplexTests/TestingBase.swift'
32+
end
2433

2534
end

0 commit comments

Comments
 (0)