GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 2.x: Automatically publish the generated JavaDocs from CI by akarnokd · Pull Request #5996 · ReactiveX/RxJava

Conversation

@akarnokd

@akarnokd akarnokd commented May 5, 2018

Copy link
Copy Markdown
Member

This PR adds a script that publishes the generated JavaDocs from CI back to the gh-pages branch upon successful snapshot and release builds (this latter needs testing though via -RC releases).

The snapshot JavaDocs will go into the same directory: http://reactivex.io/RxJava/2.x/javadoc/snapshot/

The release builds update

  • http://reactivex.io/RxJava/javadoc/ while preserving the old rx links,
  • http://reactivex.io/RxJava/2.x/javadoc/ for the latest 2.x and
  • http://reactivex.io/RxJava/2.x/javadoc/2.1.13/ for the specific release version.

The push.sh script uses a Travis-CI secured token GITHUB_TOKEN to talk to the GitHub API. This token was created for my account via https://github.com/settings/tokens (requires repo direct push access), and provided to Travis via "Environment variables" on the page https://travis-ci.org/ReactiveX/RxJava/settings .

If, for some reason the publishing fails, the build still counts as successful. The reason for this is that restarting the otherwise successful build will try to reupload the same library version into maven which fails. In this case, the JavaDocs can be updated via the old manual method.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
akarnokd added 6 commits May 5, 2018 23:15
@akarnokd
Experiment: auto publish JavaDocs
d78df8d
@akarnokd
Fix script error, add logging
953c0e2
@akarnokd
Have all package-list staged
b9dfce6
@akarnokd
Fix another scripting error
3bde88c
@akarnokd
Fix copy paths
b8c212f
@akarnokd
Real pushback on snapshot builds.
1ad088a
@akarnokd akarnokd added Build Documentation 2.x labels May 5, 2018
@akarnokd akarnokd added this to the 2.2 milestone May 5, 2018
@codecov

codecov Bot commented May 5, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #5996 into 2.x will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##                2.x   #5996      +/-   ##
===========================================
+ Coverage     98.25%   98.3%   +0.04%     
- Complexity     6051    6052       +1     
===========================================
  Files           656     656              
  Lines         44078   44078              
  Branches       6118    6118              
===========================================
+ Hits          43311   43330      +19     
+ Misses          231     220      -11     
+ Partials        536     528       -8
Impacted Files Coverage Δ Complexity Δ
...rnal/operators/flowable/FlowableFlatMapSingle.java 92.93% <0%> (-3.81%) 2% <0%> (ø)
...ternal/operators/observable/ObservablePublish.java 96.46% <0%> (-3.54%) 11% <0%> (ø)
.../io/reactivex/disposables/CompositeDisposable.java 98.14% <0%> (-1.86%) 39% <0%> (-1%)
...l/operators/observable/ObservableFlatMapMaybe.java 93.46% <0%> (-1.31%) 2% <0%> (ø)
...perators/single/SingleFlatMapIterableFlowable.java 97.5% <0%> (-0.84%) 2% <0%> (ø)
...ernal/operators/flowable/FlowableFlatMapMaybe.java 94.2% <0%> (-0.49%) 2% <0%> (ø)
...nternal/operators/observable/ObservableCreate.java 98.26% <0%> (ø) 2% <0%> (ø) ⬇️
...x/internal/operators/flowable/FlowablePublish.java 97.44% <0%> (+0.42%) 11% <0%> (ø) ⬇️
...x/internal/operators/flowable/FlowableFlatMap.java 90% <0%> (+0.52%) 4% <0%> (ø) ⬇️
...internal/operators/flowable/FlowableObserveOn.java 97.1% <0%> (+0.57%) 3% <0%> (ø) ⬇️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90203b6...2dbecc9. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@akarnokd
Pull requests should not trigger snapshot pushbacks
087910e
@akarnokd

akarnokd commented May 5, 2018

Copy link
Copy Markdown
Member Author

PRs don't trigger: https://travis-ci.org/ReactiveX/RxJava/builds/375403314#L4010

Branches do trigger: https://travis-ci.org/ReactiveX/RxJava/builds/375403308#L4018

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vanniktech
vanniktech approved these changes May 6, 2018
View reviewed changes
Comment thread .travis.yml Outdated
# Code coverage
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash gradle/push.sh

@vanniktech vanniktech May 6, 2018

Copy link
Copy Markdown
Collaborator

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.

push_javadoc?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@akarnokd akarnokd May 6, 2018

Copy link
Copy Markdown
Member Author

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.

Okay.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread gradle/push.sh

# commit all
echo -e "commit Travis build: $TRAVIS_BUILD_NUMBER for $buildTag"
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER for $buildTag"

@vanniktech vanniktech May 6, 2018

Copy link
Copy Markdown
Collaborator

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.

Should we include in the message that I'll update the documentation?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@akarnokd akarnokd May 6, 2018

Copy link
Copy Markdown
Member Author

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.

I don't think there is much ambiguity. These go into the gh-pages tab: https://github.com/ReactiveX/RxJava/tree/gh-pages

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@akarnokd
Rename push.sh to push_javadoc.sh
2dbecc9
vanniktech
vanniktech approved these changes May 6, 2018
View reviewed changes
@akarnokd
akarnokd merged commit 416771e into 2.x May 6, 2018
@akarnokd
akarnokd deleted the JavadocAutoPublish branch May 6, 2018 14:31
@akarnokd

akarnokd commented May 6, 2018

Copy link
Copy Markdown
Member Author

Looks like the release mode also works:

  • http://reactivex.io/RxJava/javadoc/
  • http://reactivex.io/RxJava/2.x/javadoc/
  • http://reactivex.io/RxJava/2.x/javadoc/2.1.14-RC1/
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@akarnokd akarnokd mentioned this pull request May 6, 2018
Automate Publishing of Javadocs #2631
Closed
@akarnokd akarnokd mentioned this pull request May 17, 2018
2.1.14 release preparations #6009
Closed
@jared-bot jared-bot mentioned this pull request May 23, 2018
Dependency update: RxJava xmartlabs/bigbang-template#95
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@vanniktech vanniktech vanniktech approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

2.x Build Documentation

Projects

None yet

Milestone

2.2

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@akarnokd @vanniktech
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.