Skip to content

Commit

Permalink
Swift 4.1.2 support, adds 4.2 builds (#45)
Browse files Browse the repository at this point in the history
* Swift 4.1.2 support, adds 4.2 builds

* Removed if statement for Linux Unicode differences are fixed
  • Loading branch information
KyeMaloy97 authored Jul 11, 2018
1 parent 9112c12 commit 2f582d1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
4.1.2
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ matrix:
dist: trusty
sudo: required
env: SWIFT_SNAPSHOT=4.0
- os: linux
dist: trusty
sudo: required
- os: linux
dist: trusty
sudo: required
env: SWIFT_SNAPSHOT=swift-4.2-DEVELOPMENT-SNAPSHOT-2018-07-01-a
- os: osx
osx_image: xcode8.3
sudo: required
Expand All @@ -28,6 +35,13 @@ matrix:
osx_image: xcode9
sudo: required
env: SWIFT_SNAPSHOT=4.0
- os: osx
osx_image: xcode9.4
sudo: required
- os: osx
osx_image: xcode9.4
sudo: required
env: SWIFT_SNAPSHOT=swift-4.2-DEVELOPMENT-SNAPSHOT-2018-06-04-a

before_install:
- git clone https://github.com/IBM-Swift/Package-Builder.git
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ API documentation for `HTMLEntities` is located [here](https://ibm-swift.github.

## Version Info

Latest release of `HTMLEntities` runs on Swift 3 and 4. Tested on Swift 3.1.1 and Swift 4.0 toolchains.
Latest release of `HTMLEntities` runs on Swift 3 and 4. Tested on Swift 3.1.1 and Swift 4.0+ toolchains.

## Installation

Expand Down
5 changes: 0 additions & 5 deletions Tests/HTMLEntitiesTests/HTMLEntitiesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ let str3Escaped = "Jako efektivnější se nám jev&iacu

class HTMLEntitiesTests: XCTestCase {
func testNamedCharacterReferences() {
#if os(Linux)
XCTAssertEqual(namedCharactersEncodeMap.count, 1367)
#else
XCTAssertEqual(namedCharactersEncodeMap.count, 1509)
#endif

XCTAssertEqual(specialNamedCharactersDecodeMap.count, 2)
XCTAssertEqual(legacyNamedCharactersDecodeMap.count, 106)
Expand Down

0 comments on commit 2f582d1

Please sign in to comment.