2019-08-10 17:32:55 +02:00
|
|
|
## ci scripts
|
|
|
|
|
|
|
|
This directory contains scripts for each build step in each build stage.
|
|
|
|
|
|
|
|
Currently three stages `lint`, `extended_lint` and `test` are defined. Each stage has its own lifecycle, similar to the
|
2019-08-10 18:56:46 +02:00
|
|
|
[Travis CI lifecycle](https://docs.travis-ci.com/user/job-lifecycle#the-job-lifecycle). Every script in here is named
|
2019-08-10 17:32:55 +02:00
|
|
|
and numbered according to which stage and lifecycle step it belongs to.
|
|
|
|
|
2019-08-10 18:56:46 +02:00
|
|
|
### Running a stage locally
|
|
|
|
|
|
|
|
To allow for a wide range of tested environments, but also ensure reproducibility to some extent, the test stage
|
|
|
|
requires `docker` to be installed. To install all requirements on Ubuntu, run
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt install docker.io ccache bash git
|
|
|
|
```
|
|
|
|
|
2019-08-15 22:51:31 +02:00
|
|
|
To run the default test stage,
|
2019-08-10 18:56:46 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
./ci/test_run_all.sh
|
|
|
|
```
|
|
|
|
|
2019-08-15 22:51:31 +02:00
|
|
|
To run the test stage with a specific configuration,
|
|
|
|
|
|
|
|
```
|
|
|
|
FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh
|
|
|
|
```
|
|
|
|
|
2019-08-10 18:56:46 +02:00
|
|
|
Be aware that the tests will be build and run in-place, so please run at your own risk.
|
2019-08-15 15:01:04 +02:00
|
|
|
If the repository is not a fresh git clone, you might have to clean files from previous builds or test runs first.
|