Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 1 | # CONTINUOUS INTEGRATION SCRIPTS |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 2 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 3 | ## Environment Variables Used in Build Scripts |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 4 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 5 | - `NODE_LABELS`: space-separated list of platform properties. The included values are used by |
| 6 | the build scripts to select the proper behavior for different operating systems and versions. |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 7 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 8 | The list should normally contain `[OS_TYPE]`, `[DISTRO_TYPE]`, and `[DISTRO_VERSION]`. |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 9 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 10 | Example values: |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 11 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 12 | - `[OS_TYPE]`: `Linux`, `OSX` |
| 13 | - `[DISTRO_TYPE]`: `Ubuntu`, `CentOS` |
| 14 | - `[DISTRO_VERSION]`: `Ubuntu-16.04`, `Ubuntu-18.04`, `CentOS-8`, `OSX-10.14`, `OSX-10.15` |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 15 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 16 | - `JOB_NAME`: optional variable that defines the type of build job. Depending on the job type, |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 17 | the build scripts can perform different tasks. |
| 18 | |
| 19 | Possible values: |
| 20 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 21 | - empty: default build task |
| 22 | - `code-coverage`: debug build with tests and code coverage analysis (Ubuntu Linux is assumed) |
| 23 | - `limited-build`: only a single debug build with tests |
Alexander Afanasyev | f22ebaf | 2015-12-17 21:23:05 -0800 | [diff] [blame] | 24 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 25 | - `CACHE_DIR`: directory containing cached files from previous builds, e.g., a compiled version |
| 26 | of ndn-cxx. If not set, `/tmp` is used. |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 27 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 28 | - `WAF_JOBS`: number of parallel build threads used by waf, defaults to 1. |