Skip to content

Add dotty-doc to dist #2537

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

Merged
merged 2 commits into from
May 26, 2017

Conversation

felixmulder
Copy link
Contributor

No description provided.

@felixmulder felixmulder requested a review from liufengyun May 26, 2017 10:29
bin/dotd Outdated
CLASS_PATH="$CLASS_PATH$PSEP$AUTOLINK_LIB"
CLASS_PATH="$CLASS_PATH$PSEP$SNAKEYAML_LIB"
CLASS_PATH="$CLASS_PATH$PSEP$ST4_LIB"
CLASS_PATH="$CLASS_PATH$PSEP$JSOUP_LIB"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Each line is an isolated dep, allowing us to delete them as they disappear over time.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to test this script. Because it hardcodes list of dependencies it is very fragile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure any of the dist scripts are testable like this currently. We'd need to trigger dist/pack-archive then run the scripts I guess.

WDYT @liufengyun ?

Copy link
Contributor

@liufengyun liufengyun May 26, 2017

Choose a reason for hiding this comment

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

Currently we have a simple CI to check if a release can compile and run a hello world on OSX. The CI runs on Travis, and it's triggered everytime we update the formula.

We can also add dotd to the same CI to make sure it completes normally.

@felixmulder felixmulder force-pushed the topic/add-dottydoc-to-dist branch from 2f79d97 to 1eb3957 Compare May 26, 2017 10:38
dist/bin/dotd Outdated

first_arg="$1"

echo $JAVACMD dotty.tools.dottydoc.Main $CLASS_PATH
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is just for testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, will remove

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

Otherwise, LGTM.

dist/bin/dotd Outdated

echo $JAVACMD dotty.tools.dottydoc.Main $CLASS_PATH

eval exec "\"$JAVACMD\"" $CLASS_PATH dotty.tools.dottydoc.Main $@
Copy link
Contributor

Choose a reason for hiding this comment

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

BTW, do we need the Scala classpath for compiling the source? The dotc script has Dscala.usejavacp=true or -Xbootclasspath/a:$classpath, so it's not required.

Copy link
Contributor

Choose a reason for hiding this comment

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

@felixmulder I guess you missed this comment?

@felixmulder felixmulder merged commit d9e1e2d into scala:master May 26, 2017
@felixmulder felixmulder deleted the topic/add-dottydoc-to-dist branch May 26, 2017 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants