Skip to content
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

Merged
merged 1 commit into from
May 9, 2018

Conversation

glaksmono
Copy link
Contributor

@glaksmono glaksmono commented May 7, 2018

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

@fanquake fanquake added the Tests label May 7, 2018
@glaksmono glaksmono force-pushed the bitcoin-11004 branch 3 times, most recently from e748795 to d4ccec8 Compare May 7, 2018 14:10
.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"
Copy link
Member

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.

Copy link
Contributor Author

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?

@maflcko maflcko changed the title [WIP][bitcoin-11004] New Travis job for CHECK_DOCS steps [WIP] New Travis job for CHECK_DOCS steps May 7, 2018
@glaksmono glaksmono force-pushed the bitcoin-11004 branch 3 times, most recently from 7ae6e40 to 549be8a Compare May 7, 2018 14:41
@maflcko
Copy link
Member

maflcko commented May 7, 2018 via email

.travis.yml Outdated
- stage: check_doc
sudo: required
env:
- PACKAGES="python3-pip shellcheck" CHECK_DOC=1
Copy link
Member

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"
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Contributor

@ken2812221 ken2812221 May 8, 2018

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.

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ken2812221
Copy link
Contributor

Concept ACK

@maflcko maflcko changed the title [WIP] New Travis job for CHECK_DOCS steps [travis] New travis job for CHECK_DOCS steps May 8, 2018
@maflcko
Copy link
Member

maflcko commented May 9, 2018

Please squash your commits according to https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits

Copy link
Contributor

@ken2812221 ken2812221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 372e8e95aaae449df3f7d2197e1b2f54288a1fbe

@maflcko
Copy link
Member

maflcko commented May 9, 2018

utACK 18c0b84. Thanks for sticking with this. Indeed a very nice first contribution!

@glaksmono
Copy link
Contributor Author

Thank you for all of the guidance @MarcoFalke

@sipa
Copy link
Member

sipa commented May 9, 2018

utACK 18c0b84

@ken2812221
Copy link
Contributor

re-utACK 18c0b84

@bitcoin bitcoin deleted a comment from mrthuan9xpro May 9, 2018
@laanwj laanwj merged commit 18c0b84 into bitcoin:master May 9, 2018
laanwj added a commit that referenced this pull request May 9, 2018
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
@practicalswift
Copy link
Contributor

Thanks @glaksmono! Very nice contribution!

@glaksmono glaksmono deleted the bitcoin-11004 branch May 9, 2018 09:16
TheArbitrator pushed a commit to TheArbitrator/dash that referenced this pull request Jun 7, 2021
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Travis job for CHECK_DOCS steps
7 participants