This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
2,969 additions
and
6,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
language: generic | ||
osx_image: xcode8 | ||
os: | ||
- linux | ||
sudo: required | ||
dist: trusty | ||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install carthage ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then carthage bootstrap ; fi | ||
install: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then SWIFT_DIR=tests ; fi | ||
matrix: | ||
include: | ||
# Test Ubuntu Linux 16.04 / Swift 5.2 | ||
- os: linux | ||
dist: xenial | ||
sudo: required | ||
env: | ||
- SWIFT_VERSION=swift-5.2.2-RELEASE | ||
- SWIFT_URL=https://swift.org/builds/swift-5.2.2-release/ubuntu1604/swift-5.2.2-RELEASE/swift-5.2.2-RELEASE-ubuntu16.04.tar.gz | ||
install: | ||
- export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu16.04/usr/bin:"${PATH}" | ||
# Test Xcode 11.4 / Swift 5.2.2 | ||
- os: osx | ||
osx_image: xcode11.4 | ||
addons: | ||
apt: | ||
packages: | ||
- clang | ||
- pkg-config | ||
script: | ||
# Setup Linux environment | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang uuid-dev libjson-c-dev ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then SWIFT_DIR=tests ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir $SWIFT_DIR ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/development/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi | ||
env: | ||
- SWIFT_VERSION=swift-DEVELOPMENT-SNAPSHOT-2016-08-04-a | ||
script: | ||
- uname | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool test -project Xcode/SwiftFoundation.xcodeproj -scheme "SwiftFoundation OS X" -sdk macosx ONLY_ACTIVE_ARCH=NO ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool build -project Xcode/SwiftFoundation.xcodeproj -scheme "SwiftFoundation iOS" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO ; fi | ||
|
||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu14.04/usr/bin:"${PATH}" ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then swift build ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then .build/debug/UnitTests ; fi | ||
|
||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl $SWIFT_URL -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi | ||
# Run Unit Tests | ||
- swift test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
// swift-tools-version:5.1 | ||
import PackageDescription | ||
|
||
let libraryType: PackageDescription.Product.Library.LibraryType | ||
#if os(Linux) | ||
libraryType = .dynamic | ||
#else | ||
libraryType = .static | ||
#endif | ||
|
||
let package = Package( | ||
name: "SwiftFoundation", | ||
dependencies: [ | ||
.Package(url: "https://github.com/PureSwift/CStatfs.git", majorVersion: 1), | ||
.Package(url: "https://github.com/PureSwift/CJSONC.git", majorVersion: 1) | ||
products: [ | ||
.library( | ||
name: "SwiftFoundation", | ||
type: libraryType, | ||
targets: ["SwiftFoundation"] | ||
) | ||
], | ||
exclude: ["Xcode", "Carthage"] | ||
targets: [ | ||
.target(name: "SwiftFoundation"), | ||
.testTarget(name: "SwiftFoundationTests", dependencies: ["SwiftFoundation"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.