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
69 | @@ -84,3 +70,24 @@ script: 70 | after_script: 71 | - echo $TRAVIS_COMMIT_RANGE 72 | - echo $TRAVIS_COMMIT_LOG 73 | + 74 | +jobs: 75 | + include: 76 | + - stage: CHECK_DOC 77 | + env: 78 | + - 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"
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.
HOST=arm-linux-gnueabihf will be executed twice in the check_doc and test then?
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 notifications@github.com wrote:
@glaksmono commented on this pull request.
In .travis.yml https://github.com/bitcoin/bitcoin/pull/13183#discussion_r186444769:
@@ -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 https://github.com/bitcoin/bitcoin/pull/13183#discussion_r186444769, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmv2lQYTRAB2bg70MXl0ugLJVNhLGeks5twF2agaJpZM4T0v_5 .
79 | +jobs: 80 | + include: 81 | + - stage: check_doc 82 | + sudo: required 83 | + env: 84 | + - PACKAGES="python3-pip shellcheck" CHECK_DOC=1
Can remove CHECK_DOC here
24 | @@ -22,7 +25,7 @@ env: 25 | - WINEDEBUG=fixme-all 26 | matrix: 27 | # ARM 28 | - - 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" 29 | + - 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"
can remove pip and shellcheck here
74 | @@ -84,3 +75,27 @@ script: 75 | after_script: 76 | - echo $TRAVIS_COMMIT_RANGE 77 | - echo $TRAVIS_COMMIT_LOG 78 | + 79 | +jobs: 80 | + include: 81 | + - stage: check_doc 82 | + sudo: required
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
7 | @@ -8,6 +8,9 @@ cache: 8 | - depends/built 9 | - depends/sdk-sources 10 | - $HOME/.ccache 11 | +stages: 12 | + - check_doc 13 | + - test 14 | env: 15 | global: 16 | - MAKEJOBS=-j3
Can remove the CHECK_DOC on the line below this one.
Done
73 | @@ -84,3 +74,26 @@ script: 74 | after_script: 75 | - echo $TRAVIS_COMMIT_RANGE 76 | - echo $TRAVIS_COMMIT_LOG 77 | + 78 | +jobs: 79 | + include: 80 | + - stage: check_doc
How about add
Seems not work.sudo: false here, travis can boot faster
Please see my previous diff to get it to work
Done
Concept ACK
Please squash your commits according to https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits
utACK 372e8e95aaae449df3f7d2197e1b2f54288a1fbe
utACK 18c0b8430820114d14a15fe19b7ae86e62be17d8. Thanks for sticking with this. Indeed a very nice first contribution!
Thank you for all of the guidance @MarcoFalke
utACK 18c0b8430820114d14a15fe19b7ae86e62be17d8
re-utACK 18c0b8430820114d14a15fe19b7ae86e62be17d8
Thanks @glaksmono! Very nice contribution!