Repository SLCR uses Git Submodules. File .gitmodules identifies the affected paths:
[submodule "script-languages"]
path = script-languages
url = https://github.com/exasol/script-languages.gitIf you clone the repository initially, then please use CLI option --recurse-submodules and also call githooks/install.sh to install the Git Hooks as explained in the next section:
git clone https://github.com/exasol/script-languages-release.git --recurse-submodulesWhen creating a branch, then please ensure to also keep the submodule up-to-date:
cd script-languages; git pull; cd $OLDPWDSLCR uses Git Hooks to run specific scripts at specific events, e.g. before committing, pushing, etc.
To install the hooks, run
./githooks/install.sh
./githooks/install_recursive.shWhen one of these scripts contains an error, then you can skip the hooks with CLI option -n or --no-verify:
git commit -nSLCR contains several integration tests which can be executed for a specific flavor using exaslct:
poetry run -- exaslct run-db-test --flavor-path=flavors/<flavor-name>CLI option --docker-db-image-version allows to specify the version of the Docker DB:
poetry run -- exaslct run-db-test \
--flavor-path=flavors/<flavor-name> \
--docker-db-image-version 7.1.10Also, you can use an existing database instance:
poetry run exaslct run-db-test \
--flavor-path=flavors/<flavor-name> \
--environment-type external_db \
--external-exasol-db-host <database host> \
--external-exasol-db-port <database port> \
--external-exasol-bucketfs-port <BucketFS port> \
--external-exasol-db-user <database user> \
--external-exasol-db-password <database password> \
--external-exasol-bucketfs-write-password <BucketFS password>exaslct will deploy the SLC, configure the container, and run the tests.
- Each flavor contains a configuration file for tests in file
flavors/<flavor>/ci.json. - This file describes the programming languages and folders which should be used for the test execution.
- You can customize the used folder using the
--test-folderor--test-fileparameter.
The following command displays all available options:
poetry run -- exaslct run-db-test --help