travis: Refactor jobs to use inheritance

Since the existing jobs are similar (currently, the `script` keys are
same), move the equal parts to a new shared key to have them in one
place. The new map will receive more content in upcoming commits.
pull/1563/head
Alex Thiessen 2020-04-18 18:43:10 +02:00
parent 576f2b37ac
commit b75b769719
No known key found for this signature in database
GPG Key ID: 6C90AE2B18A1CF5B
1 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,15 @@
# YAML anchors need to appear first.
# Keys starting with an underscore are the custom ones, refer to
# https://docs.travis-ci.com/user/build-config-yaml#private-keys-as-yaml-anchors-and-aliases-and-external-tooling
_native_job: &native_job
script: |
test/run
language: shell language: shell
jobs: jobs:
- script: test/run - <<: *native_job
os: linux os: linux
- script: test/run - <<: *native_job
os: osx os: osx