diff --git a/.DINAR/build-date.txt b/.DINAR/build-date.txt new file mode 100644 index 000000000..a9e6d6f5c --- /dev/null +++ b/.DINAR/build-date.txt @@ -0,0 +1 @@ +April 3, 2020 diff --git a/.github/workflows/DINAR-pr.yml b/.github/workflows/DINAR-pr.yml index 6d8196cbb..ff86aa13f 100644 --- a/.github/workflows/DINAR-pr.yml +++ b/.github/workflows/DINAR-pr.yml @@ -154,17 +154,30 @@ jobs: mkdir new-deps/ # create dummy file to be sure that Artifact will be uploaded echo ok > new-deps/.empty + echo "::set-env name=ARTIFACT::empty" - name: Prepare DINAR with additional dependencies if: env.PR_MODULES_DEPS != '' || env.PR_DEPS != '' run: | # Save artifacts for local run and for integrations Tests bash DINAR/workflow-files/save-docker-layers.sh new-deps/ echo "${{ env.PR_MODULES_DEPS }}" > new-deps/modules.txt + echo "::set-env name=ARTIFACT::yes" - name: Save DINAR with dependencies uses: actions/upload-artifact@v1 with: name: new-deps path: new-deps/ + - name: HOW TO RUN QUICK TESTS LOCALLY + if: always() + run: | + export MODULES=${{ env.PR_MODULES }} + export LOAD_MODULES=${{ env.PR_MODULES_LOAD }} + export PR_NUM=${{ github.event.number }} + export VERSION=${{ github.event.pull_request.base.ref }} + export REVISION_PR=${{ github.event.pull_request.head.sha}} + export DINAR_REPO="itpp-labs/DINAR-fork" + export ODOO_EXTRA_ARG=--test-enable + bash DINAR/workflow-files/how-to-run-locally.sh ${{ secrets.GITHUB_TOKEN }} - name: Test updated modules if: env.PR_MODULES != '' run: | @@ -221,7 +234,6 @@ jobs: sudo apt-get install jq - name: HOW TO RUN TESTS LOCALLY if: always() - # TODO make similar for Quick Tests run: | export MODULES=${{ env.ALL_MODULES }} export LOAD_MODULES=${{ env.ALL_MODULES_LOAD }} diff --git a/.github/workflows/DINAR.yml b/.github/workflows/DINAR.yml index 9fb0fec48..00439259b 100644 --- a/.github/workflows/DINAR.yml +++ b/.github/workflows/DINAR.yml @@ -34,10 +34,27 @@ jobs: echo "DINAR_TOKEN is not set" exit 1 fi + + check-branch: + runs-on: ubuntu-latest + steps: + - name: Check that this branch needs docker images + run: | + REF=${GITHUB_BASE_REF:-${GITHUB_REF}} + BRANCH=${REF##*/} + CHECK=$( echo "$BRANCH" | grep -E "^(master|[0-9]+\.[0-9]+)(-dev-.+)?$" || true) + if [ -z "$CHECK" ] + then + echo "This branch is not supposed to be a target of pull requests, so docker image is not needed." + echo "For information check https://github.com/itpp-labs/DINAR/issues/60" + exit 1 + fi + rebuild-images: runs-on: ubuntu-latest needs: - check-secret + - check-branch steps: - name: Checkout Repo uses: actions/checkout@v2 @@ -60,7 +77,12 @@ jobs: run: | bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN }} - - name: dinar-odoo-base + cat <<- EOF > REPO/.DINAR/image/.netrc + machine github.com + login $GITHUB_ACTOR + password ${{ secrets.DINAR_TOKEN }} + EOF + - name: Build ${{ env.IMAGE_ODOO_BASE }} uses: elgohr/Publish-Docker-Github-Action@master env: LOCAL_CUSTOM_DIR: ./image diff --git a/.github/workflows/repo2store.yml b/.github/workflows/repo2store.yml index 39116651c..b5b39aab3 100644 --- a/.github/workflows/repo2store.yml +++ b/.github/workflows/repo2store.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout REPO uses: actions/checkout@v2-beta with: - fetch-depth: 100 + fetch-depth: 0 # custom token is not needed for fetching REPO, # but the action makes some magic with authentication headers # which are used on pushing to REPO-store diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d8138dd3..dcd432d96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: name: prettier xml plugin additional_dependencies: - "prettier@1.19.1" - - "@prettier/plugin-xml@0.5.0" + - "@prettier/plugin-xml@0.7.2" files: \.xml$ - repo: https://github.com/pre-commit/mirrors-eslint rev: v6.8.0 @@ -88,11 +88,11 @@ repos: name: pylint with optional checks args: ["--rcfile=.pylintrc", "--exit-zero"] verbose: true - additional_dependencies: ["pylint-odoo==3.0.3"] + additional_dependencies: ["pylint-odoo==3.1.0"] - id: pylint name: pylint with mandatory checks args: ["--rcfile=.pylintrc-mandatory"] - additional_dependencies: ["pylint-odoo==3.0.3"] + additional_dependencies: ["pylint-odoo==3.1.0"] - repo: https://github.com/asottile/pyupgrade rev: v1.26.2 hooks: diff --git a/.prettierrc.yml b/.prettierrc.yml index 0b7d15a5f..fc5f3a7c4 100644 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -5,3 +5,4 @@ printWidth: 88 proseWrap: always semi: true trailingComma: "es5" +xmlWhitespaceSensitivity: "ignore" diff --git a/auth_signup_confirmation/data/config.xml b/auth_signup_confirmation/data/config.xml index 1a7255947..4e98e6c39 100644 --- a/auth_signup_confirmation/data/config.xml +++ b/auth_signup_confirmation/data/config.xml @@ -1,11 +1,9 @@ - - - - auth_signup_confirmation.url_singup_thankyou - /web/signup/thankyou/ - - - + + + auth_signup_confirmation.url_singup_thankyou + /web/signup/thankyou/ + + diff --git a/autostaging_project_task/views.xml b/autostaging_project_task/views.xml index e59e47ac3..f5f44271e 100644 --- a/autostaging_project_task/views.xml +++ b/autostaging_project_task/views.xml @@ -4,14 +4,13 @@ Copyright 2019 Artem Rafailov License MIT (https://opensource.org/licenses/MIT). --> - + Autostaging project.task Autostaging - Autostaging project.project @@ -19,7 +18,6 @@ project_id - project.form.allow.automove project.project @@ -29,11 +27,10 @@ + - project.task.type.form.autostaging project.task.type @@ -50,14 +47,14 @@ days + > + days + - - project.task.type.tree.autostaging project.task.type @@ -70,7 +67,6 @@ - project.task.form.autostaging project.task @@ -93,6 +89,5 @@ - diff --git a/base_attendance/report/res_partner_badge.xml b/base_attendance/report/res_partner_badge.xml index dac0a9a96..3ac015931 100644 --- a/base_attendance/report/res_partner_badge.xml +++ b/base_attendance/report/res_partner_badge.xml @@ -3,7 +3,6 @@ Copyright 2018-2019 Kolushov Alexandr License MIT (https://opensource.org/licenses/MIT).--> - -