-
Notifications
You must be signed in to change notification settings - Fork 875
chore(travis): include dart doc generation #1910
Conversation
@filipesilva @Foxandxss @wardbell : ready for review. Note that the extra wait for the doc generation only seems to be necessary when full logging is enabled; currently the logging level is set to cc: @kwalrath |
There's a couple of things that I would like to understand better about this PR:
|
Thanks for your feedback.
See my previous comment.
It is no more brittle than the current default 10 min max.
Yes, it may.
They help make the output manageable by having the output between
No, a value is always defined for the function, see
I suggest we follow what is done for the
Not any more than those for
These scripts are in support for Travis CI. I had assumed that when testing locally, doc developers would already have the necessary repos available as peers to the ng.io repo.
It runs fine in a Travis CI environment. Of course, I could make some parts be conditionally applied in a Travis environment only, and/or the presence of Dart tooling. Currently, angular.io is the home to ng2 docs of all flavors, and under that premise, it seems essential to build all the docs as part of CI. Maybe I've been misdirected in my goal, any thoughts about this, @naomiblack? The next steps, IMHO, include adding checks for broken links, etc. For that we want to do a whole site analysis. |
7335c5e
to
194e76e
Compare
I haven't checked out A2's scripts and was only comparing with the scripts we already had. That's probably why I found everything so strange. I like the idea of a travis scripts folder, but would be worried that it would lead either repetition or having some scripts only there. Do you suppose we can have some middle ground on that, where is it possible to run locally run scripts for TS/Dart (separately, as not all authors do both), and still have all the extra tooling in travis only scripts? |
I agree that we should build all docs on travis btw, just wanted to preserve scripts as a way to setup/reset local environments as well. Maybe it's too hard to have both at the moment. |
Yes, agreed. It would help to know which scripts are run locally. I was under the impression that |
The script that I care about as a TS/JS author is The script that I care about as someone who does TS/JS releases is |
Ok, thanks for the input on that. Let's see what can be done ... . |
04bf614
to
6125e98
Compare
@filipesilva I have updated the scripts so that they can be run from the command line. I have moved out as much as I can from the |
LGTM Patrice, thank your for all the hard work in getting dart doc gen working on travis! I'm seeing doc generation taking 7-8mins on Travis, whereas you mentioned 20m. Did you manage to cut it down further? |
4a41053
to
c1480fe
Compare
Ah, that is because it isn't actually building the Dart docs. I needed to adjust the gulpfile to switch to the default of all languages for the tasks: |
- Installs Dart SDK - Installs ng2/dart sources from the pub package site. - Re-enables doc build on Travis Note that `npm install -g gulp --no-optional` has been removed since it does not appear to be needed. Implements most of angular#1907.
Allow TMP and PKG to be set by developer before calling, e.g., install-dart-sdk.sh.
c1480fe
to
2a0d1ee
Compare
@wardbell : ok, this is good to go! :) |
I'm out of my depth. Since @filipesilva approves, in it goes |
Great! Btw, @filipesilva @wardbell : if ever the extended timeout becomes an issue, we can always adjust the number. At least now the basic mechanism is is place so that all we need to do is change a number. |
pub
anddartdoc
over ng2/dart).Note:
npm install -g gulp --no-optional
has been removed since it does not appear to be needed.Implements most of #1907.