Skip to content

Commit

Permalink
[test] Added script that tests on a linux image localy
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsMoll committed Dec 29, 2019
1 parent 9a1ec64 commit 1b04813
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-on-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t test -f test.dockerfile .
docker run test
11 changes: 11 additions & 0 deletions test.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM swift:5.1.2-bionic

WORKDIR /package

COPY . ./

RUN apt-get -qq update && apt-get install -y \
libssl-dev zlib1g-dev \
&& rm -r /var/lib/apt/lists/*
RUN swift package clean
CMD swift test

0 comments on commit 1b04813

Please sign in to comment.