Skip to content

Commit

Permalink
coverage: Add missing paths
Browse files Browse the repository at this point in the history
  • Loading branch information
radimkarnis committed Jan 18, 2021
1 parent ed33d98 commit a9a993a
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@ host_tests:
when: always
paths:
- test/.coverage.*
- .coverage.*
expire_in: 1 week
variables:
PYTHONPATH: "$PYTHONPATH:${CI_PROJECT_DIR}/test"
COVERAGE_PROCESS_START: "${CI_PROJECT_DIR}/test/.coveragerc"
script:
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/setup.py build
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_imagegen.py
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_espsecure.py
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32s2
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32s3beta2
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32c3
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/setup.py build
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_imagegen.py
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_espsecure.py
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32s2
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32s3beta2
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_espefuse_host.py esp32c3

check_python_style:
<<: *test_template
Expand All @@ -57,9 +58,9 @@ check_installation_can_run:
expire_in: 1 week
script:
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode setup.py install
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh esptool.py --help
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh espefuse.py --help
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh espsecure.py --help
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode esptool.py --help
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode espefuse.py --help
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode espsecure.py --help

# Check the stub can build and that a stub built in CI has the same contents
# as the one embedded in esptool
Expand Down Expand Up @@ -110,29 +111,29 @@ target_esptool_test_esp32:
tags:
- esptool_esp32_target
script:
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP32 esp32 115200
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP32 esp32 115200

target_esptool_test_esp32s2:
extends: .target_esptool_test
tags:
- esptool_esp32s2_target
script:
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP32S2 esp32s2 115200
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP32S2 esp32s2 115200

target_esptool_test_esp32s2_usbcdc:
extends: .target_esptool_test
tags:
- esptool_esp32s2_cdc_target
script:
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP32S2_USBCDC esp32s2 115200
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP32S2_USBCDC esp32s2 115200

target_esptool_test_esp8266:
extends: .target_esptool_test
allow_failure: true
tags:
- esptool_esp8266_target
script:
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP8266 esp8266 115200
- ${CI_PROJECT_DIR}/test/ci/multirun_with_pyenv.sh coverage run --parallel-mode ${CI_PROJECT_DIR}/test/test_esptool.py /dev/serial_ports/ESP8266 esp8266 115200

combine_reports:
stage: report
Expand Down

0 comments on commit a9a993a

Please sign in to comment.