Skip to content
Closed
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
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sudo: required
dist: trusty
before_install:
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
- wget https://swift.org/builds/swift-3.0-release/ubuntu1404/swift-3.0-RELEASE/swift-3.0-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-3.0-RELEASE-ubuntu14.04.tar.gz
- export PATH=${PWD}/swift-3.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
script:
- swift build
- swift test
9 changes: 4 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import PackageDescription

let package = Package(
name: "QuickTest",
targets: [
Target(name: "Spec", dependencies: [.Target(name: "SampleLibrary")]),
],
name: "SampleLibrary",
// TODO: Once the `test` command has been implemented in the Swift Package Manager, this should be changed to be `testDependencies:` instead. For now it has to be done like this for the library to get linked with the test targets.
// See: https://github.com/apple/swift-evolution/blob/master/proposals/0019-package-manager-testing.md
dependencies: [
.Package(url: "https://github.com/briancroom/Quick.git", majorVersion: 0, minor: 9),
.Package(url: "https://github.com/Quick/Quick.git", majorVersion: 0),
]
)
6 changes: 0 additions & 6 deletions Sources/Spec/main.swift

This file was deleted.

9 changes: 9 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import XCTest
import Quick

@testable import SampleLibraryTests

Quick.QCKMain([
MySpec.self,
SampleLibrarySpec.self,
])
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@testable import SampleLibrary

import Quick
import Nimble
import SampleLibrary

class SampleLibrarySpec: QuickSpec {
override func spec() {
Expand Down