Skip to content

Commit

Permalink
Appveyor: test with flang
Browse files Browse the repository at this point in the history
  • Loading branch information
xoviat committed Dec 25, 2017
1 parent 52c66e0 commit 47fc6f6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 52 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ LAPACKE/example/xexample*
# SED
SRC/*-e
LAPACKE/src/*-e
build
76 changes: 24 additions & 52 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,36 @@
# Windows testing.
# Syntax for this file:
# http://www.appveyor.com/docs/appveyor-yml
os: Visual Studio 2017
configuration: Release
clone_depth: 50

shallow_clone: true
matrix:
fast_finish: false

platform: x64
skip_commits:
# Add [av skip] to commit messages
message: /\[av skip\]/

cache:
- x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
- i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
- '%APPVEYOR_BUILD_FOLDER%\build'

environment:
CTEST_OUTPUT_ON_FAILURE: 1
matrix:
- MINGW_DIR: mingw64
MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z/download
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
- MINGW_DIR: mingw32
MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/dwarf/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z/download
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
global:
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64

install:
- if not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
- 7z x -y "%MINGW_ARCHIVE%" > nul
# CMake refuses to generate MinGW Makefiles if sh.exe is in the Path
- ps: Get-Command sh.exe -All | Remove-Item
- call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- conda config --add channels conda-forge --force
- conda install --yes --quiet cmake flang jom
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- set "LIB=%CONDA_INSTALL_LOCN%\Library\lib;%LIB%"
- set "CPATH=%CONDA_INSTALL_LOCN%\Library\include;%CPATH%"

before_build:
- ps: if (-Not (Test-Path .\build)) { mkdir build }
- cd build
- cmake -G "NMake Makefiles JOM" -DCMAKE_Fortran_COMPILER=flang -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON ..

build_script:
- echo "NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%"
- set PATH=%CD%\%MINGW_DIR%\bin;%PATH%
- g++ --version
- mingw32-make --version
- cmake --version
- if "%APPVEYOR_REPO_TAG%"=="true" (set CMAKE_BUILD_TYPE=Release) else (set CMAKE_BUILD_TYPE=Debug)
- set SRC_DIR=%CD%
- echo %SRC_DIR%
- set BLD_DIR=%SRC_DIR%\..\lapack-appveyor-bld
- set INST_DIR=%SRC_DIR%\..\lapack-appveyor-install
- mkdir -p %BLD_DIR%
- cd %BLD_DIR%
# See issue #17 on github dashboard. Once resolved, use -DCBLAS=ON
# - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
- cmake
-G "MinGW Makefiles"
-DBUILDNAME:STRING="appveyor-%MINGW_DIR%-%APPVEYOR_REPO_BRANCH%"
-DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE%
-DCMAKE_INSTALL_PREFIX=%INST_DIR%
-DCBLAS:BOOL=ON
-DLAPACKE:BOOL=ON
-DBUILD_TESTING=ON
-DLAPACKE_WITH_TMG:BOOL=ON
%SRC_DIR%
- mingw32-make -j%NUMBER_OF_PROCESSORS%
- cmake --build .

test_script:
- ctest -D ExperimentalStart
- ctest -D ExperimentalConfigure
- ctest -D ExperimentalBuild -j%NUMBER_OF_PROCESSORS%
- ctest -D ExperimentalTest --schedule-random -j%NUMBER_OF_PROCESSORS% --output-on-failure --timeout 100 -E "CBLAS\-.*cblat1"
- ctest -D ExperimentalSubmit

after_test:
- mingw32-make install -j%NUMBER_OF_PROCESSORS%
- ctest -j2

0 comments on commit 47fc6f6

Please sign in to comment.