From 79b87086ef3477e4c0a0c896a2f28c5032be34ac Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Thu, 22 Aug 2019 17:12:59 +0200 Subject: [PATCH] Add gitlab runner config --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c1faf4d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: swift:latest + +before_script: + - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" + +stages: + - build + - test + +build_project: + stage: build + script: + - swift package reset + - swift build + tags: + - swift + +test_project: + stage: test + script: + - swift package reset + - swift test + tags: + - swift \ No newline at end of file