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

more install.sh improvements #258

Merged
merged 11 commits into from
Sep 28, 2017

Conversation

MartinNowak
Copy link
Member

No description provided.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @MartinNowak!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Copy link
Member

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

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

I am looking forward to see the coverage report in action!
All LGTM except the comment about the fish test.

travis.sh Outdated
deactivate

fish <<-EOF
source ~/dlang/dmd-2.076.0/activate.fish
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be outside of the loop or $compiler?

Copy link
Member Author

Choose a reason for hiding this comment

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

pardon me, leftover from local testing

.travis.yml Outdated
include:
- os: linux
script:
- kcov $PWD/coverage ./travis.sh
Copy link
Member

Choose a reason for hiding this comment

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

Travis doesn't seem to like this.

@MartinNowak MartinNowak changed the title mode install.sh improvements more install.sh improvements Sep 26, 2017
@MartinNowak MartinNowak force-pushed the more_install_sh_improvements branch 6 times, most recently from 12da235 to 0222135 Compare September 26, 2017 19:11
@MartinNowak
Copy link
Member Author

Left out the fish shell test for now, the version on trusty (fish 2.0.0) cannot erase the fish_prompt function before restoring it.
https://travis-ci.org/dlang/installer/jobs/280105280#L664

@MartinNowak MartinNowak force-pushed the more_install_sh_improvements branch 2 times, most recently from bebdb0a to c6ca5c8 Compare September 27, 2017 08:46
- test on osx as well
- need to reset script after in-place update or we're testing the live version
- unfortunately bash's local variables also hide globals in all nested
  function calls (which is surprising and a easily missed)
- this script already uses global `path` and `local path`, and that
  issue was found when trying to move the `verify()` into  `download()`
- rename path -> ROOT, and the other globals to upcase names
- move verification from download_and_unpack to download
- also test $DC and $DMD env vars
- not supported for OSX on Travis-CI
@dlang dlang deleted a comment from codecov-io Sep 28, 2017
@MartinNowak MartinNowak merged commit cd4e433 into dlang:master Sep 28, 2017
@MartinNowak MartinNowak deleted the more_install_sh_improvements branch September 28, 2017 20:43
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