Commit c06558e1 authored by marmaduke's avatar marmaduke

add build & test

parent 44fada96
Pipeline #2890 failed with stages
in 2 minutes and 32 seconds
build:
stage: build
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG"
test:
stage: test
script:
- docker run --rm -it "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG" sh < test.sh
FROM swift
# well that was easy
\ No newline at end of file
FROM swift
\ No newline at end of file
#!/bin/bash
swift –version
mkdir helloworld-project && cd helloworld-project
swift package init --type executable
swift build
.build/debug/helloworld-project
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment