See README
Project tests should be run using the following Gradle command:
./gradlew clean test
Once the tests have run, you may want to run ./gradlew cleanDocker
to make sure all the resources are destroyed (containers, volumes, folders)
Install the archive locally:
./gradlew clean install
2 ways to set the credentials:
- export username/password as environment variables:
# Prompt for Nexus username and password
read -p "Nexus username: " user; export NEXUS_USER=$user; read -sp "Nexus password: " password; export NEXUS_PASSWORD=$password; echo ""
./gradlew publish -Puser=${NEXUS_USER} -Ppassword=${NEXUS_PASSWORD}
- read from the
~/.m2/settings.xml
file:
export NEXUS_REPO_ID="mks-nexus"
./gradlew publish -PrepoId=${NEXUS_REPO_ID}
(Note that, if set, the -Puser
and -Ppassword
will take precedence over the settings read in the ~/.m2/settings.xml
)
By default the repo URL will be Mekom Nexus repository, but you can provide your own artifact repository URL by adding:
-Purl="https://my-nexus/url"
If you are willing to leave the Odoo server running after running the tests, use:
./gradlew clean test run
The Odoo server will be accessible at http://localhost:8069