Skip to content
Snippets Groups Projects
Commit 10dda9d3 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: Avoid warning in tests, :rocket: only push documentation in branches

parent 85f19630
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
before_script: before_script:
- pip3 install $CI_PROJECT_DIR --disable-pip-version-check --no-cache-dir - pip3 install $CI_PROJECT_DIR --disable-pip-version-check --no-cache-dir
script: script:
- sudo -u odoo env ODOO_TYPE=odoo11 $CI_PROJECT_DIR/start --db_host=db -d test_setup --max-cron-threads=0 --without-demo=all --data-dir /var/lib/odoo --init base & - sudo -u odoo env ODOO_TYPE=odoo11 $CI_PROJECT_DIR/start --db_host=db -d test_setup --max-cron-threads=0 --without-demo=all --data-dir /var/lib/odoo --init base --addons-path "" &
# wait for odoo to install the modules # wait for odoo to install the modules
- sleep 35 - sleep 35
# then test the setup files # then test the setup files
...@@ -33,4 +33,6 @@ ...@@ -33,4 +33,6 @@
docker: docker:
stage: build stage: build
image: docker.orus.io/cc/docker image: docker.orus.io/cc/docker
variables:
DOCKER_IMAGE: xcgd/odoo_scripts
script: script:
...@@ -36,5 +38,4 @@ ...@@ -36,5 +38,4 @@
script: script:
- export DOCKER_IMAGE=xcgd/odoo_scripts CUSTOM_TAG=latest
- docker-build - docker-build
build-documentation: build-documentation:
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
- pip3 install -r requirements - pip3 install -r requirements
- for language in en fr ; do LANGUAGE=$language BUILDDIRSUFFIX=/$(hg identify --debug --branch) make html ; done - for language in en fr ; do LANGUAGE=$language BUILDDIRSUFFIX=/$(hg identify --debug --branch) make html ; done
push: push-documentation:
stage: push stage: push
image: image:
name: minio/mc:RELEASE.2020-01-13T22-49-03Z name: minio/mc:RELEASE.2020-01-13T22-49-03Z
...@@ -58,3 +59,5 @@ ...@@ -58,3 +59,5 @@
script: script:
- mc config host add s3 $S3_ENDPOINT_URL $S3_KEY $S3_SECRET --api S3v2 - mc config host add s3 $S3_ENDPOINT_URL $S3_KEY $S3_SECRET --api S3v2
- mc cp --recursive doc/_build/html/ s3/xcg-io-doc/odoo_scripts - mc cp --recursive doc/_build/html/ s3/xcg-io-doc/odoo_scripts
only:
- branch/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment