-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invoke cmake verbose nmake [appveyor] update file [appveyor] correct artifact locations [appveyor] show tail [appveyor] try to build tests [appveyor] explicitly build tests [appveyor] fix path [appveyor] cleanup [appveyor] use check-flang target [appveyor] install lit [appveyor] enable verbose testing Update appveyor [appveyor] remove branch [appveyor] cache build directory Update .appveyor.yml [appveyor] switch to conda-forge [appveyor] disable cache [appveyor] add llvmdev [appveyor] test windows-rebased
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
branches: | ||
only: | ||
- master | ||
- windows | ||
- windows-rebased | ||
|
||
cache: | ||
- '%APPVEYOR_BUILD_FOLDER%\build' | ||
|
||
environment: | ||
global: | ||
MSYS2_ROOT: C:\msys64 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64 | ||
PYTHON2_LOCN: C:\\Python27-x64 | ||
APPVEYOR_SAVE_CACHE_ON_FAILURE: true | ||
|
||
platform: | ||
- x64 | ||
|
||
install: | ||
# Add path, activate `conda` and update conda. | ||
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat | ||
- cmd: conda update --yes --quiet conda | ||
# Add our channels. | ||
- cmd: conda config --add channels defaults | ||
- cmd: conda config --add channels conda-forge | ||
- cmd: conda install --yes --quiet flang-meta llvmdev clangdev openmp cmake | ||
- cmd: set "PATH=%PYTHON2_LOCN%\Scripts;%PYTHON2_LOCN%;%PATH%" | ||
- ps: pip install lit | ||
|
||
|
||
build_script: | ||
- mkdir build | ||
- cd build | ||
- set "PATH=%cd%\bin;%PATH%" | ||
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 | ||
- ps: | | ||
cmake -G "NMake Makefiles" -DFLANG_INCLUDE_TESTS=ON -DFLANG_TEST_VERBOSE_MODE=ON -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release .. | ||
Push-AppveyorArtifact .\CMakeFiles\CMakeOutput.log | ||
Push-AppveyorArtifact .\CMakeFiles\CMakeError.log | ||
- ps: | | ||
cmake --build . 2>&1 | Out-File build_output.txt | ||
if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) } | ||
Push-AppveyorArtifact .\build_output.txt | ||
Get-Content .\build_output.txt -Tail 500 | ||
- ps: Compress-Archive -Path C:\projects\flang\build\bin -DestinationPath C:\Projects\flang\bin.zip | ||
- ps: Push-AppveyorArtifact C:\Projects\flang\bin.zip | ||
- ps: Compress-Archive -Path C:\projects\flang\build\lib -DestinationPath C:\Projects\flang\lib.zip | ||
- ps: Push-AppveyorArtifact C:\Projects\flang\lib.zip | ||
|
||
test_script: | ||
- cmd: set "PATH=%PATH%;%MSYS2_ROOT%\usr\bin\" | ||
- cmd: copy lib\flangmain.lib %CONDA_INSTALL_LOCN%\Library\lib | ||
- cmd: copy lib\flangrti.lib %CONDA_INSTALL_LOCN%\Library\lib | ||
- cmd: copy lib\flang.lib %CONDA_INSTALL_LOCN%\Library\lib | ||
- cmd: copy lib\ompstub.lib %CONDA_INSTALL_LOCN%\Library\lib | ||
- cmd: nmake check-flang |