Skip to content

Commit ae1a220

Browse files
migrate travis to swift package
update gitignore fix linux project update gitignore
1 parent bf2f035 commit ae1a220

34 files changed

+59
-21
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ let package = Package(
1414
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.7"),
1515
],
1616
targets: [
17-
.target(name: "Swiftline"),
17+
.target(name: "Swiftline", path: "Sources"),
1818
.testTarget(name: "SwiftlineTests",
1919
dependencies: [.target(name: "Swiftline"),
2020
.product(name: "Quick"),
2121
.product(name: "Nimble")],
22-
path: "SwiftlineTests"),
22+
path: "Tests"),
2323
]
2424
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)