Skip to content

Instantly share code, notes, and snippets.

@nhomar
Created October 25, 2017 06:08
Show Gist options
  • Save nhomar/505439c11c5b0826f4e7d43effe133b3 to your computer and use it in GitHub Desktop.
Save nhomar/505439c11c5b0826f4e7d43effe133b3 to your computer and use it in GitHub Desktop.
image: vauxoo/odoo-80-image-shippable-auto
stages:
- test
- test_build
- build
- upload_image
variables:
PSQL_VERSION: "9.5"
VERSION: "saas-15"
ODOO_REPO: "vauxoo/odoo"
ODOO_BRANCH: "saas-15"
BASE_IMAGE: "vauxoo/odoo-100-image"
COUNTRY: ""
http_proxy: http://172.17.0.1:3128
https_proxy: http://172.17.0.1:3128
ftp_proxy: http://172.17.0.1:3128
lint:
stage: test
tags:
- lint
variables:
LINT_CHECK: "1"
TESTS: "0"
script:
- export TRAVIS_BUILD_DIR=$(pwd)
- sudo apt-get update && sudo apt-get install -y dos2unix
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools check_keys
- git clone https://github.com/vauxoo/maintainer-quality-tools.git -b master ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${HOME}/gitlab_tools:${PATH}
- travis_install_nightly
- travis_run_tests
test_mg:
stage: test
tags:
- odoo
- test
variables:
LINT_CHECK: "0"
TESTS: "1"
INCLUDE: "mg"
INSTALL: "mg"
script:
- export TRAVIS_BUILD_DIR=$(pwd)
- apt-get update && apt-get install -y tree dos2unix
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools check_keys
- git clone https://github.com/vauxoo/maintainer-quality-tools.git -b master ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${HOME}/gitlab_tools:${PATH}
- travis_install_nightly
- travis_run_tests
- travis_after_tests_success || true
build_mg:
stage: build
tags:
- build
variables:
INSTALL: "mg"
CUSTOMER: "mg"
script:
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools test_images
test_qfga:
stage: test
tags:
- odoo
- test
variables:
LINT_CHECK: "0"
TESTS: "1"
INCLUDE: "qfga"
INSTALL: "qfga"
script:
- export TRAVIS_BUILD_DIR=$(pwd)
- apt-get update && apt-get install -y tree dos2unix
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools check_keys
- git clone https://github.com/vauxoo/maintainer-quality-tools.git -b master ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${HOME}/gitlab_tools:${PATH}
- travis_install_nightly
- travis_run_tests
- travis_after_tests_success || true
build_qfga:
stage: build
tags:
- build
variables:
INSTALL: "qfga"
CUSTOMER: "qfga"
script:
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools test_images
test_qfg:
stage: test
tags:
- odoo
- test
variables:
LINT_CHECK: "0"
TESTS: "1"
INCLUDE: "qfg"
INSTALL: "qfg"
script:
- export TRAVIS_BUILD_DIR=$(pwd)
- apt-get update && apt-get install -y tree dos2unix
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools check_keys
- git clone https://github.com/vauxoo/maintainer-quality-tools.git -b master ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${HOME}/gitlab_tools:${PATH}
- travis_install_nightly
- travis_run_tests
- travis_after_tests_success || true
build_qfg:
stage: build
tags:
- build
variables:
INSTALL: "qfg"
CUSTOMER: "qfg"
script:
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools test_images
test_qffm:
stage: test
tags:
- odoo
- test
variables:
LINT_CHECK: "0"
TESTS: "1"
INCLUDE: "qffm"
INSTALL: "qffm"
script:
- export TRAVIS_BUILD_DIR=$(pwd)
- apt-get update && apt-get install -y tree dos2unix
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools check_keys
- git clone https://github.com/vauxoo/maintainer-quality-tools.git -b master ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${HOME}/gitlab_tools:${PATH}
- travis_install_nightly
- travis_run_tests
- travis_after_tests_success || true
build_qffm:
stage: build
tags:
- build
variables:
INSTALL: "qffm"
CUSTOMER: "qffm"
script:
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools test_images
test_qm:
stage: test
tags:
- odoo
- test
variables:
LINT_CHECK: "0"
TESTS: "1"
INCLUDE: "qm"
INSTALL: "qm"
script:
- export TRAVIS_BUILD_DIR=$(pwd)
- apt-get update && apt-get install -y tree dos2unix
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools check_keys
- git clone https://github.com/vauxoo/maintainer-quality-tools.git -b master ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${HOME}/gitlab_tools:${PATH}
- travis_install_nightly
- travis_run_tests
- travis_after_tests_success || true
build_qm:
stage: build
tags:
- build
variables:
INSTALL: "qm"
CUSTOMER: "qm"
script:
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools test_images
upload_image:
stage: upload_image
only:
- saas-15@vauxoo/qualifirst
when: on_success
tags:
- build
variables:
CUSTOMER: "mg,qffm,qfg,qfga,qm"
script:
- pip install deployv-addon-gitlab-tools
- deployvcmd gitlab_tools upload_image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment