Clean and lean example of testing moodle plugin with bitbucket pipelines#215
Clean and lean example of testing moodle plugin with bitbucket pipelines#215kiklop74 wants to merge 3 commits intomoodlehq:mainfrom
Conversation
jrchamp
left a comment
There was a problem hiding this comment.
I don't know much about bitbucket, but I saw a couple items that I hope are helpful!
| mkdir -p /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man7 && | ||
| apt-get -q update && apt-get -yq install default-jre-headless mariadb-client && | ||
| curl -sS https://raw.githubusercontent.com/creationix/nvm/v0.39.3/install.sh | bash && | ||
| . ~/.bashrc && nvm install --default --latest-npm lts/gallium && |
There was a problem hiding this comment.
Can you use the version of nvm from the .nvmrc file?
There was a problem hiding this comment.
You misunderstood this. Everything in the setupdeps part is executed before anything is installed and just caches a nodejs version used in several most recent versions of moodle. During the execution of moodle-plugin-ci install the tool itself will check and install what is specified in .nvmrc.
| export MOODLE_BEHAT_WWWROOT="http://$BITBUCKET_DOCKER_HOST_INTERNAL:8000" ; | ||
| export MOODLE_BEHAT_WDHOST="http://$BITBUCKET_DOCKER_HOST_INTERNAL:4444/wd/hub" ; | ||
| export MOODLE_REPO='https://bitbucket.org/moodle/moodle.git' ; | ||
| export MOODLE_BRANCH='MOODLE_311_STABLE' ; |
There was a problem hiding this comment.
Is this going to cause a problem for the Moodle 4.0 test? Or should it be moved to the Moodle 3.11 test?
There was a problem hiding this comment.
These are only the defaults. If nothing specific is set in moodle-plugin-ci install these are the default values used. However, anything specified in moodle-plugin-ci install command line overrides any ENV variable.
|
Linking with issue #125 |
This is as barebone as I could make it. Also reflects latest changes in the pipelines as well.