Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Add Completion statement #87

Merged
merged 3 commits into from
Jan 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ matrix:
dist: trusty
sudo: required
env: TESTDB_NAME=testdb_1404_3
- os: linux
dist: trusty
sudo: required
env: KITURA_NIO=1 TESTDB_NAME=testdb_1404_4
- os: linux
dist: trusty
sudo: required
env: DOCKER_IMAGE=ubuntu:16.04 KITURA_NIO=1 TESTDB_NAME=testdb_1604_1
- os: linux
dist: trusty
sudo: required
env: DOCKER_IMAGE=ubuntu:18.04 KITURA_NIO=1 TESTDB_NAME=testdb_1804_1
# - os: linux
# dist: trusty
# sudo: required
# env: KITURA_NIO=1 TESTDB_NAME=testdb_1404_4
# - os: linux
# dist: trusty
# sudo: required
# env: DOCKER_IMAGE=ubuntu:16.04 KITURA_NIO=1 TESTDB_NAME=testdb_1604_1
# - os: linux
# dist: trusty
# sudo: required
# env: DOCKER_IMAGE=ubuntu:18.04 KITURA_NIO=1 TESTDB_NAME=testdb_1804_1
- os: osx
osx_image: xcode9.2
sudo: required
Expand All @@ -47,10 +47,10 @@ matrix:
osx_image: xcode10
sudo: required
env: SWIFT_SNAPSHOT=4.2 TESTDB_NAME=testdb_xcode10_1
- os: osx
osx_image: xcode10
sudo: required
env: SWIFT_SNAPSHOT=4.2 KITURA_NIO=1 TESTDB_NAME=testdb_xcode10_2
# - os: osx
# osx_image: xcode10
# sudo: required
# env: SWIFT_SNAPSHOT=4.2 KITURA_NIO=1 TESTDB_NAME=testdb_xcode10_2

before_install:
- git clone https://github.com/IBM-Swift/Package-Builder.git
Expand Down
4 changes: 3 additions & 1 deletion Tests/CouchDBTests/CouchDBTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CouchDBTest: XCTestCase {

// The database name should be defined in an environment variable TESTDB_NAME
// in Travis, to allow each Travis build to use a separate database.
let dbName = ProcessInfo.processInfo.environment["TESTDB_NAME"] ?? "Error-TESTDB_NAME-not-set"
let dbName = ProcessInfo.processInfo.environment["TESTDB_NAME"] ?? "kitura_test_db"

let couchDBClient: CouchDBClient! = {
let credentials = Utils.readCredentials()
Expand Down Expand Up @@ -64,6 +64,8 @@ class CouchDBTest: XCTestCase {
} else {
if exists {
self.dropDatabase(completion)
} else {
completion()
}
}
}
Expand Down