... | ... | @@ -71,13 +71,29 @@ python3 Tools/ContinuousIntegration/run_vadere_video.py -i Scenarios -o VideoOut |
|
|
```
|
|
|
The videos are stored in the folder `VideoOutputDir` in the `root` directory.
|
|
|
|
|
|
It is also possible to automatically run the scenarios in a first step by specifying a directory that contains scenario files or vadere projects:
|
|
|
It is also possible to run scenarios first and then generate videos from the resulting simulation output. We use this configuration to produce videos in the CI pipeline. See the next section for details.
|
|
|
|
|
|
#### CI Videos generation: Adding/removing scenarios
|
|
|
|
|
|
The CI generated videos for scenarios that are specified in `VIDEO.config` files. To add all scenario files of a vadere project, create an empty `VIDEO.config` file in the corresponding scenario folder with the following content
|
|
|
|
|
|
```
|
|
|
# This VIDEO.config adds scenarios of this vadere project to the list of scenarios for which the CI generate videos.
|
|
|
|
|
|
# The following line adds all scenario files of this vadere project:
|
|
|
*.scenario
|
|
|
|
|
|
# Place the VIDEO.config in the scenarios folder of the vadere project (the usage of relative paths has not been tested so far).
|
|
|
```
|
|
|
Vadere projects that do not contain `VIDEO.config` files in their `scenarios` folder will be fully ignored. `*.scenario` in a `VIDEO.config` adds all scenario files of a Vadere project at once. It is also possible to specify the scearios.
|
|
|
|
|
|
To test the CI, run the script with the following configuration:
|
|
|
|
|
|
```
|
|
|
python3 Tools/ContinuousIntegration/run_vadere_video.py -d Scenarios --scenarios-specified-in-config-only -o VideoOutputDir
|
|
|
```
|
|
|
If the `--scenarios-specified-in-config-only` option is used, only scenario files will be run that are specified in the `VIDEO.config` files. We use this in the Continuous Integration to limit the number of generated videos.
|
|
|
|
|
|
Vadere projects that do not contain `VIDEO.config` files in their `scenarios` folder will be fully ignored. `*.scenario` in a `VIDEO.config` adds all scenario files of a Vadere project at once.
|
|
|
|
|
|
|
|
|
|
|
|
|
... | ... | |