Skip to content

Swift Package Manager support#8

Open
stefanhp wants to merge 11 commits intoNikolaiRuhe:masterfrom
Myotest:feature/swift-package-manager
Open

Swift Package Manager support#8
stefanhp wants to merge 11 commits intoNikolaiRuhe:masterfrom
Myotest:feature/swift-package-manager

Conversation

@stefanhp
Copy link
Copy Markdown

This is a follow-up to PR #6.

As mentioned in #6 we are using this code in a framework of ours that runs on iOS, watchOS and macOS. We recently updated our build toolchain to support SPM. In order to do this we also implemented SPM on SwiftDigest (this PR).

Changes

  • Implement SPM using swift tools version 5.1 (Xcode 11.2.1)
  • Add support for Linux and tvOS
  • Add Linux in Travis CI build matrix

How to use

In development mode you can reference the package by adding:

dependencies: [.package(url: "git@github.com:Myotest/SwiftDigest.git", .branch("feature/swift-package-manager"))],

in your Package.swift.

Once the PR is merged and tagged with a version, for example 1.0.0 you would use:

dependencies: [.package(url: "https://github.com/NikolaiRuhe/SwiftDigest.git", from: "1.0.0"],

stefanhp and others added 8 commits January 22, 2019 15:39
Signed-off-by: Stefan Paychère <spaychere@myotest.com>
Signed-off-by: Stefan Paychère <spaychere@myotest.com>
Signed-off-by: Stefan Paychère <spaychere@myotest.com>
Signed-off-by: Stefan Paychère <spaychere@myotest.com>
- Add .travis.yml config for CI on GitHub
    - Matrix build for iOS 11.3, 12.1 and macOS latest
- Dedicated schemes for Travis:
    - Two dediacted schemes for Travis
    - These scheme skip one very long performance test

Signed-off-by: Stefan Paychère <spaychere@myotest.com>
- Refactor folder structure
- Update to Xcode 11.2
- Update Travis CI
- Add package definition

Signed-off-by: Stefan Paychère <spaychere@myotest.com>
- Add files requireed for a linux build
- Do not import/run tests with CommonCrypto that is not available on Linux
- Update Travis build to support Linux
- Now uses `swift test --generate-linuxmain` to generate/update Linux test list
- Remove failing tests directly in code

Signed-off-by: Stefan Paychère <spaychere@myotest.com>
- Fix warnings
- Make it simpler and more readable
- Separate in 3 stages so as to fail early

Signed-off-by: Stefan Paychère <spaychere@myotest.com>
Signed-off-by: Stefan Paychère <spaychere@myotest.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants