Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
37a18206
Commit
37a18206
authored
5 years ago
by
Henrik tom Woerden
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-ci' into 'dev'
F ci See merge request bmp-caosdb/caosdb-server!7
parents
9eadb436
f79cb48b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-53
5 additions, 53 deletions
.gitlab-ci.yml
src/test/docker/Dockerfile
+2
-2
2 additions, 2 deletions
src/test/docker/Dockerfile
with
7 additions
and
55 deletions
.gitlab-ci.yml
+
5
−
53
View file @
37a18206
...
@@ -20,8 +20,9 @@
...
@@ -20,8 +20,9 @@
#
#
# ** end header
# ** end header
#
#
variables
:
variables
:
CI_REGISTRY_IMAGE
:
$CI_REGISTRY/caosdb-server-testenv:latest
CI_REGISTRY_IMAGE
:
$CI_REGISTRY/caosdb-server-testenv:latest
# When using dind service we need to instruct docker, to talk with the
# When using dind service we need to instruct docker, to talk with the
# daemon started inside of the service. The daemon is available with
# daemon started inside of the service. The daemon is available with
# a network connection instead of the default /var/run/docker.sock socket.
# a network connection instead of the default /var/run/docker.sock socket.
...
@@ -46,66 +47,16 @@ services:
...
@@ -46,66 +47,16 @@ services:
image
:
$CI_REGISTRY_IMAGE
image
:
$CI_REGISTRY_IMAGE
stages
:
stages
:
-
setup
-
setup
-
code-generation
-
build
-
test
-
test
-
clean
-
deploy
-
deploy
##########
test
:
# SETUP
stage
:
test
##########
# delete local maven repo to be sure all packages are still maintained by the maven repos
setup:mvn
:
tags
:
[
java10
]
stage
:
setup
script
:
script
:
-
make easy-units
-
make easy-units
-
mvn dependency:purge-local-repository
-
mvn dependency:purge-local-repository
##################
# Code-generation
##################
# generate parsing classes with antlr
code-generation:antlr
:
tags
:
[
java10
]
stage
:
code-generation
artifacts
:
paths
:
-
target/generated-sources/antlr4/
script
:
-
mvn antlr4:antlr4
-
mvn antlr4:antlr4
#########
# Build
#########
# compile the server
build:server
:
tags
:
[
java10
]
stage
:
build
dependencies
:
-
code-generation:antlr
artifacts
:
paths
:
-
target/classes/
script
:
-
mvn compile
-
mvn compile
########
# Test
########
# junit tests for the server
test:server
:
tags
:
[
java10
]
stage
:
test
dependencies
:
-
build:server
script
:
-
echo "defaultRealm = CaosDB" > conf/ext/usersources.ini
-
echo "defaultRealm = CaosDB" > conf/ext/usersources.ini
-
mvn test
-
mvn test
...
@@ -128,6 +79,7 @@ build-testenv:
...
@@ -128,6 +79,7 @@ build-testenv:
# use here general latest or specific branch latest...
# use here general latest or specific branch latest...
-
docker pull $CI_REGISTRY_IMAGE ||
true
-
docker pull $CI_REGISTRY_IMAGE ||
true
-
docker build
-
docker build
--pull
--cache-from $CI_REGISTRY_IMAGE
--cache-from $CI_REGISTRY_IMAGE
-t $CI_REGISTRY_IMAGE .
-t $CI_REGISTRY_IMAGE .
-
docker push $CI_REGISTRY_IMAGE
-
docker push $CI_REGISTRY_IMAGE
This diff is collapsed.
Click to expand it.
src/test/docker/Dockerfile
+
2
−
2
View file @
37a18206
FROM
debian:
latest
FROM
debian:
stretch
RUN
apt-get update
&&
\
RUN
apt-get update
&&
\
apt-get
install
git make mariadb-server maven openjdk-8-jdk-headless
\
apt-get
install
git make mariadb-server maven openjdk-8-jdk-headless
\
python3-pip screen libpam0g-dev unzip
-y
python3-pip screen libpam0g-dev unzip
curl
-y
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment