Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13 from inamiy/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies & disable SPM build on Linux
  • Loading branch information
inamiy authored Apr 16, 2017
2 parents a78fff5 + d77c4f2 commit b52034d
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 38 deletions.
10 changes: 0 additions & 10 deletions .Package.test.swift

This file was deleted.

2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
3.1
37 changes: 24 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ env:
- LC_CTYPE=en_US.UTF-8
- XCPROJ="-workspace RxAutomaton.xcworkspace -scheme RxAutomaton"

osx_image: xcode8.2
osx_image: xcode8.3

matrix:
include:
Expand Down Expand Up @@ -35,7 +35,7 @@ matrix:
language: objective-c
script:
- set -o pipefail
- xcodebuild build -destination 'platform=watchOS Simulator,name=Apple Watch - 38mm' $XCPROJ | xcpretty
- xcodebuild build -destination 'platform=watchOS Simulator,name=Apple Watch - 38mm,OS=2.2' $XCPROJ | xcpretty
env:
- JOB=xcodebuild-watchOS

Expand All @@ -49,17 +49,28 @@ matrix:
language: generic
script:
- swift build
#- SWIFTPM_TEST=YES swift test # macOS not supported yet
env:
- JOB=swiftpm-mac

- os: linux
language: generic
sudo: required
dist: trusty
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- mv .Package.test.swift Package.swift
- swift build
- swift test
env: JOB=swiftpm-linux
# 2017/04/16 Temporary Comment-Out:
# `swift build` doesn't work on Linux (Swift 3.1).
# See https://travis-ci.org/inamiy/RxAutomaton/jobs/222546274
#
# ```
# /home/travis/build/inamiy/RxAutomaton/.build/checkouts/RxSwift.git-77973592786467360/Sources/RxCocoa/URLSession+Rx.swift:144:76: error: 'Error' is not convertible to 'NSError'; did you mean to use 'as!' to force downcast?
# print(convertResponseToString(response, error.map { $0 as NSError }, interval))
# ~~~^~~~~~~~~~
# as!
# ```

#- os: linux
# language: generic
# sudo: required
# dist: trusty
# before_install:
# - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/#raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
# script:
# - swift build
# - SWIFTPM_TEST=YES swift test
# env: JOB=swiftpm-linux
6 changes: 3 additions & 3 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "Quick/Quick"
github "Quick/Nimble"
github "Quick/Quick" ~> 1.0
github "Quick/Nimble" ~> 6.0
github "mrackwitz/xcconfigs"
github "shu223/Pulsator"
github "shu223/Pulsator" ~> 0.3
8 changes: 4 additions & 4 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github "Quick/Nimble" "v5.1.0"
github "shu223/Pulsator" "0.2.0"
github "Quick/Quick" "v0.10.0"
github "ReactiveX/RxSwift" "3.0.0"
github "Quick/Nimble" "v6.1.0"
github "shu223/Pulsator" "0.3.0"
github "Quick/Quick" "v1.1.0"
github "ReactiveX/RxSwift" "3.4.0"
github "mrackwitz/xcconfigs" "3.0"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 101 files
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
Submodule Quick updated 73 files
+39 −0 .Package.test.swift
+36 −0 .github/ISSUE_TEMPLATE
+14 −0 .github/PULL_REQUEST_TEMPLATE
+2 −0 .hound.yml
+9 −0 .swiftlint.yml
+6 −4 .travis.yml
+53 −0 Dangerfile
+1 −0 Documentation/README.md
+1 −18 Documentation/en-us/InstallingQuick.md
+9 −3 Documentation/en-us/SettingUpYourXcodeProject.md
+3 −3 Documentation/en-us/SharedExamples.md
+34 −34 Documentation/en-us/TestUsingTestDoubles.md
+78 −0 Documentation/pt-br/BehavioralTesting.md
+39 −0 Documentation/pt-br/README.md
+116 −0 Documentation/pt-br/SharedExamples.md
+1 −0 Documentation/zh-cn/README.md
+113 −0 Documentation/zh-cn/SharedExamples.md
+1 −1 Externals/Nimble
+2 −0 Gemfile
+72 −26 Gemfile.lock
+28 −13 Package.swift
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Swift/___FILEBASENAME___.swift
+1 −1 Quick.podspec
+491 −91 Quick.xcodeproj/project.pbxproj
+15 −5 Quick.xcodeproj/xcshareddata/xcschemes/Quick-iOS.xcscheme
+15 −5 Quick.xcodeproj/xcshareddata/xcschemes/Quick-macOS.xcscheme
+15 −5 Quick.xcodeproj/xcshareddata/xcschemes/Quick-tvOS.xcscheme
+29 −10 README.md
+2 −0 Rakefile
+8 −6 Sources/Quick/Callsite.swift
+3 −3 Sources/Quick/Configuration/Configuration.swift
+32 −1 Sources/Quick/Configuration/QuickConfiguration.swift
+26 −12 Sources/Quick/DSL/DSL.swift
+17 −11 Sources/Quick/DSL/World+DSL.swift
+11 −9 Sources/Quick/Example.swift
+6 −6 Sources/Quick/ExampleGroup.swift
+3 −3 Sources/Quick/Hooks/Closures.swift
+3 −3 Sources/Quick/Hooks/ExampleHooks.swift
+9 −0 Sources/Quick/NSBundle+CurrentTestBundle.swift
+33 −0 Sources/Quick/NSString+C99ExtendedIdentifier.swift
+11 −6 Sources/Quick/QuickMain.swift
+1 −1 Sources/Quick/QuickSelectedTestSuiteBuilder.swift
+78 −4 Sources/Quick/QuickSpec.swift
+0 −12 Sources/Quick/String+FileName.swift
+12 −0 Sources/Quick/URL+FileName.swift
+9 −8 Sources/Quick/World.swift
+0 −17 Sources/QuickObjectiveC/NSString+QCKSelectorName.h
+0 −37 Sources/QuickObjectiveC/NSString+QCKSelectorName.m
+9 −38 Sources/QuickObjectiveC/QuickSpec.m
+55 −0 Sources/QuickSpecBase/QuickSpecBase.m
+11 −0 Sources/QuickSpecBase/include/QuickSpecBase.h
+5 −7 Tests/LinuxMain.swift
+32 −0 Tests/QuickTests/QuickAfterSuiteTests/AfterSuiteTests+ObjC.m
+26 −0 Tests/QuickTests/QuickAfterSuiteTests/AfterSuiteTests.swift
+24 −0 Tests/QuickTests/QuickAfterSuiteTests/Info.plist
+12 −7 Tests/QuickTests/QuickFocusedTests/FocusedTests.swift
+0 −1 Tests/QuickTests/QuickTestHelpers/TestRun.swift
+3 −3 Tests/QuickTests/QuickTestHelpers/XCTestCaseProvider.swift
+1 −1 Tests/QuickTests/QuickTests/Fixtures/FunctionalTests_SharedExamplesTests_SharedExamples.swift
+8 −8 Tests/QuickTests/QuickTests/FunctionalTests/AfterEachTests.swift
+0 −45 Tests/QuickTests/QuickTests/FunctionalTests/AfterSuiteTests.swift
+7 −7 Tests/QuickTests/QuickTests/FunctionalTests/BeforeEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/BeforeSuiteTests.swift
+30 −0 Tests/QuickTests/QuickTests/FunctionalTests/BundleModuleNameTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/Configuration/AfterEach/Configuration+AfterEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/Configuration/BeforeEach/Configuration+BeforeEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/DescribeTests.swift
+10 −12 Tests/QuickTests/QuickTests/FunctionalTests/ItTests.swift
+0 −42 Tests/QuickTests/QuickTests/FunctionalTests/ObjC/AfterSuiteTests+ObjC.m
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/PendingTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/SharedExamples+BeforeEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/SharedExamplesTests.swift
+1 −1 Tests/QuickTests/QuickTests/Helpers/QuickTestsBridgingHeader.h
2 changes: 1 addition & 1 deletion Carthage/Checkouts/RxSwift
Submodule RxSwift updated 618 files
18 changes: 15 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import Foundation
import PackageDescription

let isSwiftPackageManagerTest = ProcessInfo.processInfo.environment["SWIFTPM_TEST"] == "YES"

let package = Package(
name: "RxAutomaton",
dependencies: [
.Package(url: "https://github.com/ReactiveX/RxSwift.git", majorVersion: 3)
]
dependencies: {
var deps: [Package.Dependency] = [
.Package(url: "https://github.com/ReactiveX/RxSwift.git", majorVersion: 3)
]
if isSwiftPackageManagerTest {
deps += [
.Package(url: "https://github.com/Quick/Quick", majorVersion: 1),
.Package(url: "https://github.com/Quick/Nimble", majorVersion: 6)
]
}
return deps
}()
)

0 comments on commit b52034d

Please sign in to comment.