Skip to content

Commit

Permalink
update CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
glessard committed Sep 1, 2018
1 parent b0ce497 commit 18db2e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ matrix:
dist: trusty
language: generic
sudo: required
env: SWIFT_VERSION=3.2 CLANG_VERSION=3.6
env: SWIFT_VERSION=3.2

- os: linux
dist: trusty
language: generic
sudo: required
env: SWIFT_VERSION=4.1.1
env: SWIFT_VERSION=4.1.3

- os: osx
osx_image: xcode9
env: SWIFT_VERSION=3.2

- os: osx
osx_image: xcode9.4
env: SWIFT_VERSION=4.1.2

- os: osx
osx_image: xcode10

before_install:
- sudo /bin/bash Tests/install-clang.sh
Expand Down
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
// swift-tools-version:4.0
// swift-tools-version:4.2

import PackageDescription

#if !swift(>=4.2)
let versions = [3,4]
#else
let versions = [SwiftVersion.v3, .v4, .v4_2]
#endif

#if swift(>=4.0)

let package = Package(
Expand All @@ -16,7 +22,7 @@ let package = Package(
.target(name: "deferred", dependencies: ["CAtomics"]),
.testTarget(name: "deferredTests", dependencies: ["deferred"]),
],
swiftLanguageVersions: [3,4]
swiftLanguageVersions: versions
)

#else
Expand Down

0 comments on commit 18db2e1

Please sign in to comment.