- performance repo was not updated due to wrong folder
- wrong version was used when updating the master branch
This commit is contained in:
Martin Diehl 2021-11-17 09:14:51 +01:00
parent 59b6b4bb2b
commit 5a901a42ff
1 changed files with 7 additions and 8 deletions

View File

@ -168,12 +168,12 @@ grid_runtime:
- cmake -DOPTIMIZATION=AGGRESSIVE -DDAMASK_SOLVER=GRID -DCMAKE_INSTALL_PREFIX=./ ${CI_PROJECT_DIR} - cmake -DOPTIMIZATION=AGGRESSIVE -DDAMASK_SOLVER=GRID -DCMAKE_INSTALL_PREFIX=./ ${CI_PROJECT_DIR}
- make -j2 all install - make -j2 all install
- export PATH=${PWD}/bin:${PATH} - export PATH=${PWD}/bin:${PATH}
- REPO_DIR=$(mktemp -d) - cd $(mktemp -d)
- git clone -q git@git.damask.mpie.de:damask/performance.git ${REPO_DIR} - git clone -q git@git.damask.mpie.de:damask/performance.git .
- > - >
${CI_PROJECT_DIR}/PRIVATE/testing/runtime.py ${CI_PROJECT_DIR}/PRIVATE/testing/runtime.py
--input_dir ${CI_PROJECT_DIR}/examples/grid --input_dir ${CI_PROJECT_DIR}/examples/grid
--output_dir ${REPO_DIR} --output_dir ./
--tag ${CI_COMMIT_SHA} --tag ${CI_COMMIT_SHA}
- if [ ${CI_COMMIT_BRANCH} == development ]; then git commit -am ${CI_PIPELINE_ID}_${CI_COMMIT_SHA}; git push; fi - if [ ${CI_COMMIT_BRANCH} == development ]; then git commit -am ${CI_PIPELINE_ID}_${CI_COMMIT_SHA}; git push; fi
before_script: before_script:
@ -199,12 +199,11 @@ update_revision:
script: script:
- cd $(mktemp -d) - cd $(mktemp -d)
- git clone -q git@git.damask.mpie.de:damask/DAMASK.git . - git clone -q git@git.damask.mpie.de:damask/DAMASK.git .
- export TESTEDREV=$(git describe) # might be detached from development branch - git checkout ${CI_COMMIT_SHA}
- echo ${TESTEDREV} > python/damask/VERSION - export VERSION=$(git describe)
- echo ${VERSION} > python/damask/VERSION
- git add python/damask/VERSION - git add python/damask/VERSION
- > - git commit -m "[skip ci] updated version information after successful test of $VERSION"
git diff-index --quiet HEAD ||
git commit -m "[skip ci] updated version information after successful test of $TESTEDREV"
- export UPDATEDREV=$(git describe) # tested state + 1 commit - export UPDATEDREV=$(git describe) # tested state + 1 commit
- git checkout master - git checkout master
- git pull - git pull