Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix building on Windows #331
Conversation
|
It may be more useful to put this in a .bashrc file instead, so it doesn't need to be repeated for every command. |
|
Put the |
|
OK, that makes sense (we could do things with environment variables and .bashrc but that sounds like a bad idea). You might want to make a small function to build a full windows command array from just the './mach build' string of interest to avoid hitting the line length limit. |
cce4714
to
8ffe161
|
Is the changed patch more of what you're looking for? |
| windows = ServoFactory([ | ||
| # TODO: convert this to use DynamicServoFactory | ||
| # We need to run each command in a bash login shell, which breaks the | ||
| # heuristics used by DynamicServoFactory.make_step | ||
| steps.Compile(command=["bash", "-l", "-c", "./mach build -d -v"], | ||
| steps.Compile(command=["bash", "-l", "-c", ""], make_cd_string("./mach build -d -v"), |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
larsbergstrom
Apr 22, 2016
Author
Contributor
Good catch! I hate that it is basically impossible to test any of this locally.
This comment has been minimized.
This comment has been minimized.
aneeshusa
Apr 25, 2016
Member
Actually, this could have been caught via ./test.py sls.buildbot.master inside Vagrant - there's some extra setup that's required but I've been using it and it's pretty helpful. I'm trying to add local tests where I can :)
8ffe161
to
ffff6bb
|
That should hopefully be less worse. |
ffff6bb
to
8c40eda
|
OK, it even passes Travis now :-) |
|
This looks OK, but I was thinking that the function could create the entire
array, instead of just the command at the end. |
|
@bors-servo r=aneeshusa Sounds good; I will open an |
|
|
Fix building on Windows r? @edunham This *appears* to fix the Windows build, when I've tested the environment vars and the command via RDP to the build machine. Here's hoping! <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/331) <!-- Reviewable:end -->
|
|
larsbergstrom commentedApr 21, 2016
r? @edunham
This appears to fix the Windows build, when I've tested the environment vars and the command via RDP to the build machine. Here's hoping!
This change is