Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kate Kader
Open VDS
Commits
620e5a8f
Commit
620e5a8f
authored
Nov 14, 2019
by
David Diederich
Browse files
Added test stage to run unit tests
parent
de5e7da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
620e5a8f
stages
:
-
prepare
-
build
-
test
variables
:
SHA_IMAGE_TAG
:
$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
...
...
@@ -17,11 +18,14 @@ devel-container:
-
docker build -t $SHA_IMAGE_TAG -f build-environment.Dockerfile .
-
docker push $SHA_IMAGE_TAG
# --------------------------------------------------------------------------------
compile
:
stage
:
build
image
:
$SHA_IMAGE_TAG
tags
:
[
'
docker-runner'
]
cache
:
artifacts
:
expire_in
:
1 hr
paths
:
-
build
script
:
...
...
@@ -29,3 +33,13 @@ compile:
-
cd build
-
cmake $CMAKE_OPTIONS ..
-
make -j8
# --------------------------------------------------------------------------------
unit-tests
:
stage
:
test
image
:
$SHA_IMAGE_TAG
tags
:
[
'
docker-runner'
]
script
:
-
cd build
-
make test
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment