Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vospace-rest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
VOSpace INAF
vospace-rest
Commits
3bd067f0
Commit
3bd067f0
authored
4 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Added CI
parent
433bedc3
No related branches found
No related tags found
No related merge requests found
Pipeline
#755
failed
4 years ago
Stage: generate-test-env
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+39
-0
39 additions, 0 deletions
.gitlab-ci.yml
src/test/resources/testing-Dockerfile
+9
-0
9 additions, 0 deletions
src/test/resources/testing-Dockerfile
with
48 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
39
−
0
View file @
3bd067f0
stages
:
-
generate-test-env
-
test
-
dockerize
variables
:
# to avoid "fatal: git fetch-pack: expected shallow list"
GIT_STRATEGY
:
clone
pre_test
:
stage
:
generate-test-env
tags
:
-
shell
script
:
-
docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
-
docker build -t "${CI_REGISTRY_IMAGE}/vospace-test-env" -f src/test/resources/testing-Dockerfile .
-
docker push "${CI_REGISTRY_IMAGE}/vospace-test-env"
only
:
refs
:
-
ci-test
changes
:
-
src/test/resources/testing-Dockerfile
test
:
stage
:
test
tags
:
-
docker
image
:
"
${CI_REGISTRY_IMAGE}/vospace-test-env"
variables
:
FILE_CATALOG_REPO_URL
:
"
https://gitlab-ci-token:${CI_JOB_TOKEN}@www.ict.inaf.it/gitlab/ia2/vospace-file-catalog.git"
script
:
-
pwd
-
ls
-
git clone ${FILE_CATALOG_REPO_URL}
-
mvn clean test -Dinit_database_scripts_path=../../vospace-file-catalog
-
awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print "coverage=" 100*covered/instructions }' target/site/jacoco/jacoco.csv
coverage
:
'
/coverage=\d+\.\d+/'
only
:
-
ci-test
This diff is collapsed.
Click to expand it.
src/test/resources/testing-Dockerfile
0 → 100644
+
9
−
0
View file @
3bd067f0
# Dockerfile for setting up an environment to run tests
FROM git.ia2.inaf.it:5050/ia2/ia2-devops/maven-otj-pg-embedded
USER root
RUN apt-get update && apt-get install -y git
USER postgres
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