-
Notifications
You must be signed in to change notification settings - Fork 80
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
Enable testing on Windows with AppVeyor #437
Conversation
ffa215f
to
3aaf15b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will fix appveyor but there are old things to remove
build.bat
Outdated
set DFLAGS=-O -release -inline | ||
set CORE= | ||
set LIBDPARSE= | ||
set STD= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
build.bat
Outdated
|
||
for %%x in (src\*.d) do set CORE=!CORE! %%x | ||
for %%x in (src\analysis\*.d) do set ANALYSIS=!ANALYSIS! %%x | ||
for %%x in (libdparse\experimental_allocator\src\std\experimental\allocator\*.d) do set STD=!STD! %%x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
build.bat
Outdated
for %%x in (src\*.d) do set CORE=!CORE! %%x | ||
for %%x in (src\analysis\*.d) do set ANALYSIS=!ANALYSIS! %%x | ||
for %%x in (libdparse\experimental_allocator\src\std\experimental\allocator\*.d) do set STD=!STD! %%x | ||
for %%x in (libdparse\experimental_allocator\src\std\experimental\allocator\building_blocks\*.d) do set STD=!STD! %%x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
build.bat
Outdated
for %%x in (containers\src\containers\internal\*.d) do set CONTAINERS=!CONTAINERS! %%x | ||
|
||
@echo on | ||
%DC% %CORE% %STD% %LIBDPARSE% %LIBDDOC% %ANALYSIS% %INIFILED% %DSYMBOL% %CONTAINERS% %DFLAGS% -I"libdparse\src" -I"dsymbol\src" -I"containers\src" -I"libddoc\src" -ofdscanner.exe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove %STD%
build.bat
Outdated
setlocal enabledelayedexpansion | ||
|
||
IF "%DC%"=="" SET DC="dmd" | ||
set DFLAGS=-O -release -inline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DFlags should change according to DC. For ldc2 they should be set to -O2 -release
(O2 set implicitly inlining on)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another option is to remove -inline
. Your call...
3aaf15b
to
d63ba26
Compare
I used another trick:
In theory this should also fix the issues with the invalid |
appveyor.yml
Outdated
environment: | ||
matrix: | ||
- DC: dmd | ||
DVersion: nightly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nightly
appveyor.yml
Outdated
DVersion: nightly | ||
arch: x64 | ||
- DC: dmd | ||
DVersion: nightly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nightly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove nightly and this will be fine
You can now run the tests under windows with |
d63ba26
to
f1e337c
Compare
So now it seems that we run into a lot of funky messages: https://ci.appveyor.com/project/greenify/d-scanner/build/1.0.16/job/34hu2tnnwa23yw4y, e.g.
As this hasn't been there this summer, I would assume this is due to a recent change in the compiler. |
build.bat
Outdated
@echo off | ||
setlocal enabledelayedexpansion | ||
|
||
IF "%DC%"=="" SET DC="dmd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry but can you write the commands in lower case, as in the rest of the script ?
Also do you know why there's a major diff failure for this file ?
I'm on win right now. |
5509094
to
672af84
Compare
672af84
to
67b9697
Compare
Thanks a lot for the info... This is great :/
I assume because my Vim automatically fixed the line-endings? |
I'll try to setup Appveyor on my fork and see. D-Scanner doesn't fundamentally requires multi platform tests but this is so weird that an explanation must be found. |
@wilzbach Also seems build.bat need to be updated for x86? |
Thanks a lot for getting back to this & finding the root cause. I simply disabled |
With the
build.bat