Add --on-plc-start --on-plc-stop and --status-change to runtime command line, calling given command respectively on start stop or any event. Command line string is python formated (to eventually include status with {}) before being split (supports quoted strings) and passed to Popen for non-blocking execution.
image: skvorl/beremiz-requirements
pipelines:
default:
- parallel:
- step:
name: Codestyle checks
script:
- ln -s /CanFestival-3 $BITBUCKET_CLONE_DIR/../CanFestival-3
- /usr/bin/python --version
- ./tests/tools/check_source.sh
- step:
name: Application tests
max-time: 10
script:
- ln -s /CanFestival-3 $BITBUCKET_CLONE_DIR/../CanFestival-3
- ./tests/tools/run_python_tests.sh