Skip to content

Commit 73ac7c2

Browse files
Merge pull request #4 from bow-swift/compatibility_linux
Linux
2 parents f8920ed + ae1a220 commit 73ac7c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+99
-1009
lines changed

.github/workflows/swift.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Compile and test
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
macos:
7+
name: macos | compile and test
8+
runs-on: macos-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Run tests
12+
run: swift test
13+
14+
linux:
15+
name: linux | compile
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Compile project
20+
run: swift build

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ xcuserdata
2121
*.xcuserstate
2222
*.xcscmblueprint
2323
**.DS_Store
24+
.travis.yml
25+
.ruby-version
2426

2527
## Obj-C/Swift specific
2628
*.hmap
@@ -34,3 +36,8 @@ Pods/
3436
# Carthage
3537
Carthage
3638
**/Carthage/**
39+
40+
## Swift package
41+
**/LinuxMain.swift
42+
**/XCTestManifests.swift
43+
Swiftline.xcodeproj

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

LinuxMain.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import XCTest
2+
3+
var tests = [XCTestCaseEntry]()
4+
XCTMain(tests)

Package.resolved

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.1
22
import PackageDescription
33

44
let package = Package(
5-
name: "Swiftline",
6-
products: [
7-
.library(name: "Swiftline", targets: ["Swiftline"]),
8-
],
9-
targets: [
10-
.target(name: "Swiftline"),
11-
]
5+
name: "Swiftline",
6+
platforms: [
7+
.macOS(.v10_13),
8+
],
9+
products: [
10+
.library(name: "Swiftline", targets: ["Swiftline"]),
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/Quick/Quick.git", from: "2.2.0"),
14+
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.7"),
15+
],
16+
targets: [
17+
.target(name: "Swiftline", path: "Sources"),
18+
.testTarget(name: "SwiftlineTests",
19+
dependencies: [.target(name: "Swiftline"),
20+
.product(name: "Quick"),
21+
.product(name: "Nimble")],
22+
path: "Tests"),
23+
]
1224
)

Source/Swiftline/Glob.swift

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)