Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[appveyor] try MinGW-w64 instead of MSys2
[simgrid.git] / appveyor.yml
1 # This file is intended to automatize the testing of SimGrid on
2 # Windows using the appveyor.com continuous integration service
3
4 os: Visual Studio 2015
5 version: "{build}"
6 clone_depth: 1
7
8 # scripts that are called at very beginning, before repo cloning
9 init:
10 - cmake --version
11 - msbuild /version
12 - git config --global core.longpaths true
13 - git config --global core.autocrlf input
14
15 #platform: 
16 #  - Win32 # This is Windows 32bits
17 #  - x64   # This is Windows 64bits
18
19 environment:
20   global:
21     BOOST_ROOT: c:\Libraries\boost_1_59_0
22     BOOST_LIBRARYDIR: c:\Libraries\boost_1_59_0\stage\lib
23     #  BOOST_ROOT: c:\Libraries\boost
24     #  BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib
25     
26   matrix:
27     - COMPILER: MSVC15
28       PLATFORM: Win32
29     - COMPILER: MSVC15
30       PLATFORM: x64
31     - COMPILER: MinGW-w64
32       
33 install:
34 - if [%COMPILER%]==[MinGW]     set PATH=C:\MinGW\bin;%PATH%
35 - if [%COMPILER%]==[MinGW-w64] set PATH=C:\mingw64\bin;%PATH%
36 - if [%COMPILER%]==[MSYS2]     set PATH=C:\msys64\bin,%PATH%
37 - if [%COMPILER%]==[MinGW-w64] rename "C:\Program Files (x86)\Git\bin\sh.exe" "sh2.exe"
38
39 build_script:
40 - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[Win32] cmake -G "Visual Studio 14 2015"       -Denable_smpi=OFF -Denable_mallocators=OFF .
41 - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[x64]   cmake -G "Visual Studio 14 2015 Win64" -Denable_smpi=OFF -Denable_mallocators=OFF .
42 - if not [%COMPILER%]==[MSVC15]                      cmake -G "MinGW Makefiles"             -Denable_smpi=OFF -Denable_mallocators=OFF .
43 - if [%COMPILER%]==[MSVC15]     msbuild ALL_BUILD.vcxproj /verbosity:normal
44 - if not [%COMPILER%]==[MSVC15] mingw32-make && mingw32-make install
45
46 test_script:
47 - ctest --output-on-failure
48
49 # notifications:
50 # - irc: "irc.debian.org#simgrid" # Not implemented by AppVeyor yet :(
51 # Some source of inspiration:
52
53 # https://github.com/sympy/symengine/blob/master/appveyor.yml <- MS, mingw & mingw64
54
55 # https://github.com/dartsim/dart/blob/master/appveyor.yml
56 # https://github.com/osmcode/libosmium/blob/master/appveyor.yml
57 # https://github.com/polysquare/cmake-unit/blob/master/appveyor.yml
58 # https://github.com/openvswitch/ovs/blob/master/appveyor.yml
59
60 # https://github.com/behdad/harfbuzz/pull/112/files