Skip to content

Commit

Permalink
[UPD] CicleCi enable tests and auto-tag jobs (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda authored Jan 23, 2025
1 parent 4400e21 commit 128bc3f
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,28 @@ jobs:
name: Setup Log Folder For Reports
command: sudo mkdir -p .log && sudo chmod 777 .log

# - run:
# name: Run Test
# command: docker-compose run --rm odoo run_pytest.sh

# - run:
# name: Codacy Coverage
# command: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l python -r .log/coverage.xml
- run:
name: Run Test
command: docker-compose run --rm odoo run_pytest.sh

# - store_test_results:
# path: .log
- store_test_results:
path: .log

# job that find the next tag for the current branch/repo and push the tag to github.
# it will trigger the publish of a new docker image.
# auto-tag:
# machine: true
# steps:
# - checkout
# - run:
# name: Get nws
# command: |
# curl -L $NWS_BIN_LOCATION > ./nws
# chmod +x ./nws
# - run:
# name: Set tag
# command: |
# ./nws circleci create-tag -t odoo-base
auto-tag:
machine: true
steps:
- checkout
- run:
name: Get nws
command: |
curl -L $NWS_BIN_LOCATION > ./nws
chmod +x ./nws
- run:
name: Set tag
command: |
./nws circleci create-tag -t odoo-base
workflows:
Expand All @@ -54,10 +50,10 @@ workflows:
jobs:
- tests:
context: quay.io
# - auto-tag:
# context: nws
# requires:
# - tests
# filters:
# branches:
# only: /^1\d\.0/
- auto-tag:
context: nws
requires:
- tests
filters:
branches:
only: /^1\d\.0/

0 comments on commit 128bc3f

Please sign in to comment.