Enable testing on Windows with AppVeyor#437
Conversation
ffa215f to
3aaf15b
Compare
ghost
left a comment
There was a problem hiding this comment.
I don't think this will fix appveyor but there are old things to remove
| set DFLAGS=-O -release -inline | ||
| set CORE= | ||
| set LIBDPARSE= | ||
| set STD= |
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 |
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 |
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 |
build.bat
Outdated
| setlocal enabledelayedexpansion | ||
|
|
||
| IF "%DC%"=="" SET DC="dmd" | ||
| set DFLAGS=-O -release -inline |
There was a problem hiding this comment.
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.
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 |
appveyor.yml
Outdated
| DVersion: nightly | ||
| arch: x64 | ||
| - DC: dmd | ||
| DVersion: nightly |
|
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.
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