Skip to content

Commit

Permalink
Fix travis build #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Azoy committed Jan 20, 2020
1 parent 41362f5 commit ec4d113
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ matrix:
- sudo apt-get install clang libicu-dev
before_script:
- wget "https://swift.org/builds/swift-5.0.3-release/ubuntu1604/swift-5.0.3-RELEASE/swift-5.0.3-RELEASE-ubuntu16.04.tar.gz" -O "/tmp/swift-5.0.3-RELEASE-ubuntu16.04.tar.gz"
- tar -xvf "/tmp/swift-5.0.3-RELEASE-ubuntu16.04.tar.gz"
- export PATH="$PATH:$PWD/swift-5.0.3-RELEASE-ubuntu16.04/bin"
- tar xzf "/tmp/swift-5.0.3-RELEASE-ubuntu16.04.tar.gz"
- export PATH="$PATH:$PWD/swift-5.0.3-RELEASE-ubuntu16.04/usr/bin"
- os: osx
osx_image: xcode11.3

Expand Down
5 changes: 2 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.0
// swift-tools-version:5.1

import PackageDescription

Expand Down Expand Up @@ -31,7 +31,6 @@ let package = Package(
name: "EchoTests",
dependencies: ["Echo"]
)
],
swiftLanguageVersions: [.v5]
]
)

8 changes: 6 additions & 2 deletions Tests/EchoTests/Context Descriptor/AnonymousDescriptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ struct AnonymousFoo {
let metadata = reflect(AnonymousBar.self) as! StructMetadata
let parent = metadata.descriptor.parent! as! AnonymousDescriptor
XCTAssertTrue(parent.anonymousFlags.hasMangledName)
let mangledName = try XCTUnwrap(parent.mangledName)
// XCTUnwrap is unavailble from swift test atm
//let mangledName = try XCTUnwrap(parent.mangledName)
let mangledName = parent.mangledName!
XCTAssertEqual(
mangledName,
"$s9EchoTests12AnonymousFooV0C3Bar33_16BDE84827F25937B00C6B35A30DC536LLV"
Expand All @@ -20,7 +22,9 @@ struct AnonymousFoo {
let metadata = reflect(AnonymousGenericBar<Int>.self) as! StructMetadata
let parent = metadata.descriptor.parent! as! AnonymousDescriptor
XCTAssertTrue(parent.anonymousFlags.hasMangledName)
let mangledName = try XCTUnwrap(parent.mangledName)
// XCTUnwrap is unavailable from swift test atm
//let mangledName = try XCTUnwrap(parent.mangledName)
let mangledName = parent.mangledName!
XCTAssertEqual(
mangledName,
"$s9EchoTests12AnonymousFooV0C10GenericBar33_16BDE84827F25937B00C6B35A30DC536LLV"
Expand Down

0 comments on commit ec4d113

Please sign in to comment.