update Makefile: add test command
This commit is contained in:
parent
514d3f2e33
commit
01b8aeca4f
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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') {
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user