Refine build config

This commit is contained in:
Christian Treffs 2019-08-22 17:24:18 +02:00
parent e26b03ec5b
commit e5af20b65a
1 changed files with 9 additions and 7 deletions

View File

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