Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dlang
lmdb-d
Commits
16c76942
Commit
16c76942
authored
Feb 04, 2020
by
Carsten Schlote
Browse files
Add a CI file for GitLab
parent
9a7561c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
16c76942
image
:
gitlab.vahanus.net:5050/vahanus/public/container-ubuntu-dlang-dev:latest
variables
:
GIT_SUBMODULE_STRATEGY
:
normal
before_script
:
-
echo "Working on $CI_COMMIT_REF_NAME / $CI_COMMIT_SHA ..."
-
if command -v docker ; then echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" --password-stdin docker.vahanus.com ; fi
stages
:
-
lint
-
build
-
test
-
docs
-
deploy
#----------------------------------------------------------------------
lint program
:
tags
:
-
gitlabdocker
stage
:
lint
script
:
-
echo "linting $CI_COMMIT_REF_NAME / $CI_COMMIT_SHA ..."
-
dub lint
#----------------------------------------------------------------------
build program
:
tags
:
-
gitlabdocker
stage
:
build
script
:
-
dub build
artifacts
:
name
:
"
$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
paths
:
-
liblmdb_d.a
#----------------------------------------------------------------------
test program
:
tags
:
-
gitlabdocker
stage
:
test
script
:
-
apt update && apt install -y liblmdb-dev
-
dub test
artifacts
:
name
:
"
$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
paths
:
-
lmdb_d-test-library
#----------------------------------------------------------------------
build docs
:
tags
:
-
gitlabdocker
stage
:
docs
script
:
-
dub build -b ddox
artifacts
:
name
:
"
$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
untracked
:
true
paths
:
-
docs/
#----------------------------------------------------------------------
deploy program
:
tags
:
-
gitlabdocker
stage
:
deploy
script
:
-
echo "Setup a Vahanus artifactory first!"
when
:
manual
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