Skip to content

Commit

Permalink
use docker w/ nio pre-installed
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Mar 15, 2018
1 parent bbacbae commit 31be47f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Tests/PostgreSQLTests/PostgreSQLConnectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ class PostgreSQLConnectionTests: XCTestCase {
SELECT "categories".* FROM "categories" WHERE ("categories"."id" = $1) LIMIT 1 OFFSET 0
""", [1])

try print(acronyms.wait())
try print(categories.wait())
_ = try acronyms.wait()
_ = try categories.wait()
}

static var allTests = [
Expand Down
16 changes: 2 additions & 14 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ jobs:
- run: swift test
linux:
docker:
- image: norionomura/swift:swift-4.1-branch
- image: codevapor/swift:4.1
- image: circleci/postgres:latest
environment:
POSTGRES_USER: vapor_username
POSTGRES_DB: vapor_database
POSTGRES_PASSWORD: vapor_password
steps:
- run:
name: Update APT
command: apt-get update
- run:
name: Install Swift NIO dependencies
command: apt-get install -yq pkg-config libssl-dev
- checkout
- run:
name: Compile code
Expand All @@ -36,19 +30,13 @@ jobs:

linux-fluent:
docker:
- image: norionomura/swift:swift-4.1-branch
- image: codevapor/swift:4.1
- image: circleci/postgres:latest
environment:
POSTGRES_USER: vapor_username
POSTGRES_DB: vapor_database
POSTGRES_PASSWORD: vapor_password
steps:
- run:
name: Update APT
command: apt-get update
- run:
name: Install Swift NIO dependencies
command: apt-get install -yq pkg-config libssl-dev
- run:
name: Clone Fluent PostgreSQL
command: git clone -b nio https://github.com/vapor/fluent-postgresql.git
Expand Down

0 comments on commit 31be47f

Please sign in to comment.