Merge pull request #166 from iyamazaki/master
[platform/upstream/lapack.git] / appveyor.yml
1 # Windows testing.
2 # Syntax for this file:
3 # http://www.appveyor.com/docs/appveyor-yml
4
5 shallow_clone: true
6
7 platform: x64
8
9 cache:
10   - x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
11   - i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
12
13 environment:
14   CTEST_OUTPUT_ON_FAILURE: 1
15   matrix:
16   - MINGW_DIR: mingw64
17     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
18     MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
19   - MINGW_DIR: mingw32
20     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
21     MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
22
23 install:
24   - if not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
25   - 7z x -y "%MINGW_ARCHIVE%" > nul
26   # CMake refuses to generate MinGW Makefiles if sh.exe is in the Path
27   - ps: Get-Command sh.exe -All | Remove-Item
28
29 build_script:
30   - echo "NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%"
31   - set PATH=%CD%\%MINGW_DIR%\bin;%PATH%
32   - g++ --version
33   - mingw32-make --version
34   - cmake --version
35   - if "%APPVEYOR_REPO_TAG%"=="true" (set CMAKE_BUILD_TYPE=Release) else (set CMAKE_BUILD_TYPE=Debug)
36   - set SRC_DIR=%CD%
37   - echo %SRC_DIR%
38   - set BLD_DIR=%SRC_DIR%\..\lapack-appveyor-bld
39   - set INST_DIR=%SRC_DIR%\..\lapack-appveyor-install
40   - mkdir -p %BLD_DIR%
41   - cd %BLD_DIR%
42     # See issue #17 on github dashboard.  Once resolved, use -DCBLAS=ON
43     #  - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
44   - cmake
45     -G "MinGW Makefiles"
46     -DBUILDNAME:STRING="appveyor-%MINGW_DIR%-%APPVEYOR_REPO_BRANCH%"
47     -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE%
48     -DCMAKE_INSTALL_PREFIX=%INST_DIR%
49     -DCBLAS:BOOL=ON
50     -DLAPACKE:BOOL=ON
51     -DBUILD_TESTING=ON
52     -DLAPACKE_WITH_TMG:BOOL=ON
53     %SRC_DIR%
54   - mingw32-make -j%NUMBER_OF_PROCESSORS%
55
56 test_script:
57   - ctest -D ExperimentalStart
58   - ctest -D ExperimentalConfigure
59   - ctest -D ExperimentalBuild -j%NUMBER_OF_PROCESSORS%
60   - ctest -D ExperimentalTest --schedule-random -j%NUMBER_OF_PROCESSORS% --output-on-failure --timeout 100 -E "CBLAS\-.*cblat1"
61   - ctest -D ExperimentalSubmit
62
63 after_test:
64   - mingw32-make install -j%NUMBER_OF_PROCESSORS%