Skip to content

Commit

Permalink
Merge pull request #13 from hbrunn/15.0-CI
Browse files Browse the repository at this point in the history
[ADD] full CI
  • Loading branch information
albig authored Aug 1, 2023
2 parents 676bb8e + 117e395 commit a43feaf
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
test:
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
env:
EXCLUDE: verdigado_template_default
name: ${{ matrix.name }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -75,16 +77,16 @@ jobs:
run: oca_run_tests
- name: Generate coverage.xml
run: coverage xml --include '*.py'
# - uses: codecov/codecov-action@v3
# with:
# files: coverage.xml
- uses: codecov/codecov-action@v3
with:
files: coverage.xml
- name: Update .po files
run: |
apt install gettext
git config --global --add safe.directory $(pwd)
LANG=de_DE
ADDONS=$(manifestoo --select-addons-dir ${ADDONS_DIR} list --separator=,)
for module in $(echo $ADDONS | tr ',' ' '); do
for module in $(echo $ADDONS | tr ',' ' ' | grep --invert-match $EXCLUDE); do
mkdir -p $module/i18n
/opt/odoo-venv/bin/odoo -d ${PGDATABASE} --i18n-export=/tmp/$module.pot --modules=$module --logfile=/dev/null
if [ -f $module/i18n/$LANG.po ]; then
Expand All @@ -98,13 +100,8 @@ jobs:
git add $module/i18n/$LANG.po
done
if git commit -m '[UPD] translations' --dry-run; then
git fetch origin $GITHUB_HEAD_REF
git checkout $GITHUB_HEAD_REF
git commit -m '[UPD] translations'
git push origin $GITHUB_HEAD_REF
git diff HEAD
else
echo No changes, doing nothing
fi
- container: ghcr.io/oca/oca-ci/py3.9-ocb15.0:latest
name: test with Odoo
if: ${{ matrix.makepo == 'true' }}
54 changes: 54 additions & 0 deletions repos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
hr-attendance:
defaults:
depth: 1
remotes:
oca: https://github.com/OCA/hr-attendance.git
merges:
- oca 15.0
hr-holidays:
defaults:
depth: 1
remotes:
oca: https://github.com/OCA/hr-holidays.git
merges:
- oca 15.0
sale-workflow:
remotes:
oca: https://github.com/OCA/sale-workflow.git
merges:
- oca 15.0
server-backend:
remotes:
oca: https://github.com/OCA/server-backend.git
hbrunn: https://github.com/hbrunn/server-backend.git
merges:
- oca 15.0
- hbrunn 15.0-base_ical
server-brand:
defaults:
depth: 1
remotes:
oca: https://github.com/OCA/server-brand.git
merges:
- oca 15.0
server-tools:
defaults:
depth: 1
remotes:
oca: https://github.com/OCA/server-tools.git
merges:
- oca 15.0
server-ux:
defaults:
depth: 1
remotes:
oca: https://github.com/OCA/server-ux.git
merges:
- oca 15.0
web:
defaults:
depth: 1
remotes:
oca: https://github.com/OCA/web.git
merges:
- oca 15.0
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
openupgradelib
unidecode

0 comments on commit a43feaf

Please sign in to comment.