update Makefile: add test command

This commit is contained in:
hoangvv 2025-01-06 17:48:48 +07:00
parent 514d3f2e33
commit 01b8aeca4f
2 changed files with 7 additions and 3 deletions

8
Jenkinsfile vendored
View File

@ -1,15 +1,17 @@
pipeline {
agent any
agent {
'Node-Dev-100163'
}
stages {
stage('Build') {
steps {
echo 'Building..'
sh 'make install'
}
}
stage('Test') {
steps {
echo 'Testing..'
echo 'Testing...'
}
}
stage('Deploy') {

View File

@ -15,6 +15,8 @@ CONFIG=odoo.conf
install:
sudo apt install python3-pip libldap2-dev libpq-dev libsasl2-dev && \
pip install -r requirements.txt
test:
${PYTHON} odoo-bin -i all_modules --log-level=test --test-enable -d testdb --stop-after-init --config=${CONFIG}
update_env:
@awk '/^ODOO_TAG=/ { $$0 = "ODOO_TAG=${BRANCH}" } 1' ${DEPLOY_PATH}/.env > ${DEPLOY_PATH}/.env.tmp && mv ${DEPLOY_PATH}/.env.tmp ${DEPLOY_PATH}/.env
build-image: update_env