Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
| - make -f posix.mak test | ||
| - make -f posix.mak html | ||
| - make -f posix.mak clean && rm -rf ../{dmd,druntime,phobos,tools,installer,dub} | ||
| - make -f posix.mak all |
There was a problem hiding this comment.
I thought we should test the two most important targets: html and all
| GIT_HOME=https://github.com/dlang | ||
|
|
||
| # Auto-cloning missing directories | ||
| $(shell [ ! -d $(DMD_DIR) ] && git clone --depth=1 ${GIT_HOME}/dmd $(DMD_DIR)) |
There was a problem hiding this comment.
Now GIT_HOME is no longer undefined and checking out /dmd doesn't fail.
posix.mak
Outdated
| # Clone all main D repositories | ||
| ${DMD_DIR} ${DRUNTIME_DIR} ${PHOBOS_DIR} ${TOOLS_DIR} ${INSTALLER_DIR} ${DUB_DIR}: | ||
| git clone ${GIT_HOME}/$(notdir $(@F)) $@ | ||
| git clone --depth=1 ${GIT_HOME}/$(notdir $(@F)) $@ |
There was a problem hiding this comment.
It takes quite a long time to do a full checkout of dmd and it isn't really required.
There was a problem hiding this comment.
Git history is needed for git describe to work properly, so this might not be a good idea.
|
|
||
| changelog/prerelease.dd: $G/changelog/next-version $(LOOSE_CHANGELOG_FILES) | \ | ||
| ${STABLE_DMD} $(TOOLS_DIR) $(INSTALLER_DIR) $(DUB_DIR) | ||
| ${STABLE_DMD} $(DMD_DIR) $(DRUNTIME_DIR) $(PHOBOS_DIR) $(TOOLS_DIR) $(INSTALLER_DIR) $(DUB_DIR) |
There was a problem hiding this comment.
druntime and phobos weren't cloned by default for the changelog script anymore.
posix.mak
Outdated
| # Clone all main D repositories | ||
| ${DMD_DIR} ${DRUNTIME_DIR} ${PHOBOS_DIR} ${TOOLS_DIR} ${INSTALLER_DIR} ${DUB_DIR}: | ||
| git clone ${GIT_HOME}/$(notdir $(@F)) $@ | ||
| git clone --depth=1 ${GIT_HOME}/$(notdir $(@F)) $@ |
There was a problem hiding this comment.
Git history is needed for git describe to work properly, so this might not be a good idea.
CONTRIBUTING.md
Outdated
|
|
||
| The dlang.org build process depends on many files which are downloaded during | ||
| the build process. If you happen to have a slow internet connection, you can skip | ||
| these downloads with `DIFFABLE=`: |
CONTRIBUTING.md
Outdated
| ended with error code 0, directory `web` contains the produced HTML | ||
| files. Take a moment to open `web/index.html` in a browser. | ||
|
|
||
| ### Building without changing files |
There was a problem hiding this comment.
"without changing files" is kind of ambiguous here
CONTRIBUTING.md
Outdated
|
|
||
| Please see the [Ddoc fundamentals](https://wiki.dlang.org/Contributing_to_dlang.org). | ||
|
|
||
| ### Learn about the more Makefile targets and options |
There was a problem hiding this comment.
This doesn't sound right. s/the // ?
Why was it disabled? I don't know if it's going to bring enough benefit vs. the overhead of managing another CI. I guess we could try and see if it doesn't get in the way too much? |
|
I just tried "make -f posix.mak all" again. It still fails for me, after:" |
|
Looks like your |
This link might help: |
I think because we moved the testsuite to DAutoTest to keep the CI overhead low here.
Ok enabled. Ideally it should just work "out of the box" (as for any fresh checkout).
Ok. I added a "Posix-compatible" way with using a temporary file. Not sure why we need to build this compiler anyhow, Maybe we can even remove the dependence on this entirely, but for now "... && mv" should work. |
|
Build failed. But at least we know that it ran for 15 minutes and 50 seconds before doing so! |
See: https://forum.dlang.org/post/azdfcrfqegubikcyntfj@forum.dlang.org
The problem was that
GIT_HOMEwas undefined and thus the git clone failed.I think we should really have a CI for this. @CyberShadow what do you think about re-enabling Travis?
I also added a hint about
DIFFABLE=1to the docs while I was at it.