Skip to content

Commit

Permalink
Address Unit Test warning about an unused variable (#64)
Browse files Browse the repository at this point in the history
* Address Unit Test warning about an unused variable

Also added the project file to the repo to make any future changes/modifications easier to do

* Remove generated files & update .gitignore to ignore .swiftpm

* Revert other .gitignore changes

* Update .travis.yml to just do more recent/relevant builds

---------

Co-authored-by: Kris Kline <[email protected]>
  • Loading branch information
LowAmmo and Kris Kline authored Nov 20, 2024
1 parent 6edf7ac commit 07240ae
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
/.build-ubuntu/*
/*.xcodeproj
Package.resolved

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/
.swiftpm
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ branches:
# by .swift-version, unless SWIFT_SNAPSHOT is specified.
matrix:
include:
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu16.04:5.1.5
- os: linux
dist: bionic
sudo: required
services: docker
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:5.4
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:5.4 SWIFT_TEST_ARGS=""
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:latest USE_SWIFT_DEVELOPMENT_SNAPSHOT=1
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:latest USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode11
osx_image: xcode12.2
sudo: required
env: SWIFT_SNAPSHOT=5.1.5 JAZZY_ELIGIBLE=true
env: JAZZY_ELIGIBLE=true SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode12.2
osx_image: xcode13.1
sudo: required
env: SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode13.4
sudo: required
env: USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode12.5
osx_image: xcode14.2
sudo: required
env: USE_SWIFT_DEVELOPMENT_SNAPSHOT=1
env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT

before_install:
- git clone https://github.com/Kitura/Package-Builder.git
Expand Down
2 changes: 1 addition & 1 deletion KituraContracts.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = "KituraContracts"
s.version = "2.0.0"
s.version = "2.0.1"
s.summary = "KituraContracts is a library containing type definitions shared by client and server code."
s.homepage = "https://github.com/Kitura/KituraContracts"
s.license = { :type => "Apache License, Version 2.0" }
Expand Down
2 changes: 1 addition & 1 deletion Tests/KituraContractsTests/QueryCoderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class QueryCoderTests: XCTestCase {
return
}

guard let myQueryData: Data = try? QueryEncoder().encode(query) else {
guard let _: Data = try? QueryEncoder().encode(query) else {
XCTFail("Failed to encode query to Data")
return
}
Expand Down

0 comments on commit 07240ae

Please sign in to comment.