Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt-ci
Commits
e50cc3db
Commit
e50cc3db
authored
4 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
try to add ccache also to gdt builds
parent
77125694
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab-job-template.yml
+9
-4
9 additions, 4 deletions
gitlab-job-template.yml
with
9 additions
and
4 deletions
gitlab-job-template.yml
+
9
−
4
View file @
e50cc3db
...
...
@@ -7,6 +7,9 @@ variables:
DOCKER_DRIVER
:
overlay2
GIT_SUBMODULE_STRATEGY
:
recursive
TESTS_MODULE_SUBDIR
:
None
CCACHE_BASEDIR
:
${CI_PROJECT_DIR}
CCACHE_DIR
:
"
${CI_PROJECT_DIR}/.ccache"
CCACHE_COMPILERCHECK
:
content
.jobtpl
:
services
:
...
...
@@ -16,9 +19,13 @@ variables:
when
:
-
always
image
:
docker:19.03.12
cache
:
key
:
"
$CI_JOB_NAME"
paths
:
-
.ccache
before_script
:
-
|
apk --update add openssh-client rsync git file bash python3 py3-pip
apk --update add openssh-client rsync git file bash python3 py3-pip
ccache
pip install -U docker jinja2 docopt
export BASEIMAGE="${MY_MODULE}-testing_${DOCKER_TAG}:${TRAVIS_BRANCH/\//_}"
export IMAGE="dunecommunity/ci_${MY_MODULE}-testing_${DOCKER_TAG}:${TRAVIS_COMMIT}"
...
...
@@ -26,7 +33,7 @@ variables:
docker pull dunecommunity/${BASEIMAGE} || export BASEIMAGE="${MY_MODULE}-testing_${DOCKER_TAG}:master" ; docker pull dunecommunity/${BASEIMAGE}
export ENV_FILE=${HOME}/env
mkdir ${CI_PROJECT_DIR}/testresults && chmod -R 777 ${CI_PROJECT_DIR}/testresults
DOCKER_RUN="docker run -v ${CI_PROJECT_DIR}/testresults:/home/dune-ci/testresults --env-file ${ENV_FILE} ${IMAGE}"
DOCKER_RUN="docker run -v ${CI_PROJECT_DIR}/testresults:/home/dune-ci/testresults
-v ${CI_PROJECT_DIR}/.ccache:/home/dune-ci/.ccache
--env-file ${ENV_FILE} ${IMAGE}"
git submodule update --init --recursive
docker build --build-arg BASE=${BASEIMAGE} -t ${IMAGE} -f .ci/shared/docker/ci_run/Dockerfile .
script
:
...
...
@@ -35,13 +42,11 @@ variables:
python3 ./.ci/shared/scripts/make_env_file.py
${DOCKER_RUN} /home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
${DOCKER_RUN} /home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
after_script
:
-
|
export IMAGE="dunecommunity/ci_${MY_MODULE}-testing_${DOCKER_TAG}:${TRAVIS_COMMIT}"
echo $DOCKER_PW | docker login --username="$DOCKER_USER" --password-stdin
docker push ${IMAGE}
artifacts
:
reports
:
junit
:
'
${CI_PROJECT_DIR}/testresults/*xml'
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