From be94a6726d1182a64dbdf083e49ea8a276b96ca9 Mon Sep 17 00:00:00 2001 From: Laurent Gaches Date: Wed, 29 Mar 2017 09:50:38 +0200 Subject: [PATCH] fix travis build with swift 3.1 --- .travis.yml | 10 ++++++---- Dockerfile | 10 ++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 Dockerfile diff --git a/.travis.yml b/.travis.yml index 7792bbf..efd4ed4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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)" \ No newline at end of file + - docker run --rm --name bson_test bson \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7bf8881 --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file