Skip to content

Commit

Permalink
fix travis build with swift 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaches committed Mar 29, 2017
1 parent 80040e8 commit be94a67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
os:
- linux
- osx
language: generic
sudo: required
dist: trusty
osx_image: xcode8.1
services:
- docker

before_install:
- docker build -t bson .
script:
- eval "$(curl -sL https://raw.githubusercontent.com/OpenKitten/Mongo-Assets/master/bson-travisci)"
- eval "$(curl -sL https://raw.githubusercontent.com/OpenKitten/Mongo-Assets/master/codecov)"
- docker run --rm --name bson_test bson
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM swiftdocker/swift:3.1


WORKDIR /code

COPY Package.swift /code/
COPY ./Tests /code/Tests
COPY ./Sources /code/Sources

CMD swift test

0 comments on commit be94a67

Please sign in to comment.