diff --git a/Jenkinsfile b/Jenkinsfile index 476b3c7c2..894d61742 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') { diff --git a/Makefile b/Makefile index b72dfe89b..2a1adb4af 100644 --- a/Makefile +++ b/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