a specialized yaml merger
Put the following merge into your template
{
"template": {
"mergers": [
{
"merger": "Travis",
"pattern": ".travis.yml"
}]
}
the following hints are used
{
"*": { "scope": "travis", "removeEmpty": true },
"": {
"orderBy": [
"dist",
"os",
"language",
"addons",
"python",
"php",
"rvm",
"node_js",
"env",
"install",
"jobs",
"before_script",
"after_script",
"script",
"branches",
"notifications"
]
},
"*node_js": { "merge": "mergeVersionsPreferNumeric" },
"jobs.include": {
"key": "stage",
"orderBy": ["test", "doc", "release"]
}
}
jobs:
include:
- stage: test
script:
- npm run cover
- npx codecov
- cat ./build/coverage/lcov.info | npx coveralls
jobs:
include:
- stage: test
node_js:
- 13.8.0
jobs:
include:
- stage: test
script:
- npm run cover
- npx codecov
- cat ./build/coverage/lcov.info | npx coveralls
node_js:
- 13.8.0