diff --git a/.circleci/config.yml b/.circleci/config.yml index 955ada7..cfe81f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,34 +21,30 @@ 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: - # <<: *quay_io_login - # - 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: + <<: *quay_io_login + - 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: version: 2 @@ -57,10 +53,10 @@ workflows: - 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/