[bitcoin/bitcoin] Scripts and tools: Run the CI lint stage on mac and linux both (#13728)

scravy requested changes on this pull request.

I very much like these changes — love the `—exclude` change, the `-e` made me go to the documentation the first time I came across it and I wished it was a more self-explanatory cli switch :-)

> @@ -1,6 +1,8 @@
sudo: required
dist: trusty
-os: linux
+os:
+ — linux
+ — osx

AFAIK it is not required to enumerate `osx` here.

> @@ -11,6 +13,7 @@ cache:
stages:
— lint
— test
+ — lint macOS

you can use the same stage `lint` — it will have this stage with two jobs, one in linux, one in macOS

> @@ -81,6 +84,8 @@ after_script:
— echo $TRAVIS_COMMIT_LOG

jobs:
+ exclude:
+ — os: osx

this would not be required either if not mentioning it in the `os` section globally

> @@ -105,3 +110,41 @@ jobs:
while read LINE; do travis_retry gpg —keyserver hkp://subset.pool.sks-keyservers.net —recv-keys $LINE; done < contrib/verify-commits/trusted-keys && travis_wait 50 contrib/verify-commits/verify-commits.py; fi + - stage: lint macOS + os: osx this `osx` suffices > @@ -105,3 +110,41 @@ jobs:
while read LINE; do travis_retry gpg —keyserver hkp://subset.pool.sks-keyservers.net —recv-keys $LINE; done < contrib/verify-commits/trusted-keys && travis_wait 50 contrib/verify-commits/verify-commits.py; fi + - stage: lint macOS this could be `lint` as mentioned above

Добавить комментарий