Skip to content
Snippets Groups Projects
Verified Commit ebd0b541 authored by David Beniamine's avatar David Beniamine
Browse files

Use directly CI_PROJECT_DIR

parent 5f434d5b
No related branches found
No related tags found
1 merge request!25Add a gitlab-ci file
......@@ -36,13 +36,7 @@ composer:
- if: '$CI_COMMIT_MESSAGE =~ /test/'
- if: '$CI_COMMIT_BRANCH =~ /test/ || $CI_COMMIT_BRANCH == "production" || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
script:
# We need to copy files to a shared path that is accessible on the main host to allow the volume to work
- 'export SHARED_PATH="/builds/${CI_PROJECT_DIR}/shared"'
- env
- mkdir -p ${SHARED_PATH}
- cp -r ${CI_PROJECT_DIR}/* ${SHARED_PATH}
- cp -r ${CI_PROJECT_DIR}/.* ${SHARED_PATH}
- docker run -v ${SHARED_PATH}:/sites/memorekall/www/web_dev -v /log:/sites/memorekall/www/web_dev/log --entrypoint /sites/memorekall/www/web_dev/tools/ci-job.sh $TEST_IMAGE
- docker run -v ${CI_PROJECT_DIR}:/sites/memorekall/www/web_dev -v /log:/sites/memorekall/www/web_dev/log --entrypoint /sites/memorekall/www/web_dev/tools/ci-job.sh $TEST_IMAGE
artifacts:
when: always
expire_in: 1 week
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment