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
fa1c967d
Commit
fa1c967d
authored
4 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
fix .ccache directory permissions
parent
e50cc3db
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
+20
-21
20 additions, 21 deletions
gitlab-job-template.yml
with
20 additions
and
21 deletions
gitlab-job-template.yml
+
20
−
21
View file @
fa1c967d
...
...
@@ -10,6 +10,7 @@ variables:
CCACHE_BASEDIR
:
${CI_PROJECT_DIR}
CCACHE_DIR
:
"
${CI_PROJECT_DIR}/.ccache"
CCACHE_COMPILERCHECK
:
content
CCACHE_COMPRESS
:
"
true"
.jobtpl
:
services
:
...
...
@@ -24,29 +25,27 @@ variables:
paths
:
-
.ccache
before_script
:
-
|
apk --update add openssh-client rsync git file bash python3 py3-pip ccache
pip install -U docker jinja2 docopt
export
BASE
IMAGE="${MY_MODULE}-testing_${DOCKER_TAG}:${TRAVIS_
BRANCH/\//_
}"
export IMAGE="dunecommunity/ci_${MY_MODULE}-testing_${DOCKER_TAG}:${TRAVIS_COMMIT}"
# get image with fallback to master branch of the super repo
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 -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 .
-
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
}"
-
# get image with fallback to master branch of the super repo
-
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
-
mkdir ${CI_PROJECT_DIR}/
.ccache
&& chmod -R 777 ${CI_PROJECT_DIR}/
.ccache && ls -la ${CI_PROJECT_DIR}/.ccache
-
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
:
-
|
[[ -f ./.gitsuper ]] && echo "Please remove .gitsuper from the repo" && exit 1
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
-
[[
-f ./.gitsuper
]]
&&
echo "Please remove .gitsuper from the repo" && exit
1
-
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}
-
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