-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[travis] New travis job for CHECK_DOCS steps #13183
Conversation
e748795
to
d4ccec8
Compare
.travis.yml
Outdated
include: | ||
- stage: CHECK_DOC | ||
env: | ||
- HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf python3-pip shellcheck" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the actual arm cross build intact. The only thing you'd need to move here is the pip and shellcheck package
Also, would be nice if the check doc run before the tests, not the other way round.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HOST=arm-linux-gnueabihf
will be executed twice in the check_doc
and test
then?
7ae6e40
to
549be8a
Compare
You wouldn't need to set environment variables that are not used for the
check doc. I.e. no need for the cross compile HOST ...
…On Mon, May 7, 2018, 10:43 Grady Laksmono ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .travis.yml
<#13183 (comment)>:
> @@ -84,3 +70,24 @@ script:
after_script:
- echo $TRAVIS_COMMIT_RANGE
- echo $TRAVIS_COMMIT_LOG
+
+jobs:
+ include:
+ - stage: CHECK_DOC
+ env:
+ - HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf python3-pip shellcheck" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
HOST=arm-linux-gnueabihf will be executed twice in the check_doc and test
then?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#13183 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGGmv2lQYTRAB2bg70MXl0ugLJVNhLGeks5twF2agaJpZM4T0v_5>
.
|
.travis.yml
Outdated
- stage: check_doc | ||
sudo: required | ||
env: | ||
- PACKAGES="python3-pip shellcheck" CHECK_DOC=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove CHECK_DOC here
.travis.yml
Outdated
@@ -22,7 +25,7 @@ env: | |||
- WINEDEBUG=fixme-all | |||
matrix: | |||
# ARM | |||
- HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf python3-pip shellcheck" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" | |||
- HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf python3-pip shellcheck" DEP_OPTS="NO_QT=1" GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove pip and shellcheck here
.travis.yml
Outdated
jobs: | ||
include: | ||
- stage: check_doc | ||
sudo: required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can get rid of sudo here to speed up the boot-process:
diff --git a/.travis.yml b/.travis.yml
index f3f5305e4a..f547b3dc42 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -79,12 +79,13 @@ after_script:
jobs:
include:
- stage: check_doc
- sudo: required
- env:
- - PACKAGES="python3-pip shellcheck"
+ sudo: false
+ addons:
+ apt:
+ packages:
+ - python3-pip
+ - shellcheck
install:
- - if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi
- - if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi
- if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then travis_retry pip3 install flake8 --user; fi
before_script:
- git fetch --unshallow
@@ -8,6 +8,9 @@ cache: | |||
- depends/built | |||
- depends/sdk-sources | |||
- $HOME/.ccache | |||
stages: | |||
- check_doc | |||
- test | |||
env: | |||
global: | |||
- MAKEJOBS=-j3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove the CHECK_DOC on the line below this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
jobs: | ||
include: | ||
- stage: check_doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about add sudo: false
here, travis can boot faster
Seems not work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my previous diff to get it to work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Concept ACK |
Please squash your commits according to https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits |
…from the core jobs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 372e8e95aaae449df3f7d2197e1b2f54288a1fbe
utACK 18c0b84. Thanks for sticking with this. Indeed a very nice first contribution! |
Thank you for all of the guidance @MarcoFalke |
utACK 18c0b84 |
re-utACK 18c0b84 |
18c0b84 [bitcoin-11004] creating another jobs for the CHECK_DOC=1, separated from the core jobs (Grady Laksmono) Pull request description: Configure a new Travis job that runs against PRs, and only runs the `CHECK_DOC` tests. At the same time, the `CHECK_DOC` stuff in the existing job would be removed. Fixes #11004 Tree-SHA512: 6e1ed0a0742f2f141ac40c666538d4c0d5eab5766a2f2364ba6d940a9be6c93a28970a4191b0641a61e25fe87e3af2367e51a43f3bc930f819be2a2c54326b1d
Thanks @glaksmono! Very nice contribution! |
18c0b84 [bitcoin-11004] creating another jobs for the CHECK_DOC=1, separated from the core jobs (Grady Laksmono) Pull request description: Configure a new Travis job that runs against PRs, and only runs the `CHECK_DOC` tests. At the same time, the `CHECK_DOC` stuff in the existing job would be removed. Fixes bitcoin#11004 Tree-SHA512: 6e1ed0a0742f2f141ac40c666538d4c0d5eab5766a2f2364ba6d940a9be6c93a28970a4191b0641a61e25fe87e3af2367e51a43f3bc930f819be2a2c54326b1d
Configure a new Travis job that runs against PRs, and only runs the
CHECK_DOC
tests. At the same time, theCHECK_DOC
stuff in the existing job would be removed.Fixes #11004