Merge branch 'feature/gitlab-ci' into 'master'

Add gitlab runner config

See merge request fireblade/ecs!2
This commit is contained in:
Christian Treffs 2019-08-22 15:32:39 +00:00
commit efc6b20385
1 changed files with 28 additions and 0 deletions

28
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,28 @@
image: swift:5.0
#before_script:
#- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
stages:
- test
- build_release
build_project:
stage: build_release
script:
- swift package reset
- swift build -c release
tags:
- docker
only:
- master
test_project:
stage: test
variables:
GIT_DEPTH: "50"
script:
- swift package reset
- swift test
tags:
- docker