X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2ba53ecd17e4033957e34c4d1b367465ab66ff06..d3ca2c9ead07e2ec3dcbe157b9759bda0233a753:/appveyor.yml diff --git a/appveyor.yml b/appveyor.yml index 17f600135b..addf069f6f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,41 +1,63 @@ # This file is intended to automatize the testing of SimGrid on # Windows using the appveyor.com continuous integration service -os: MinGW +os: Visual Studio 2015 version: "{build}" clone_depth: 1 -platform: - - Win32 # This is Windows 32bits (don't activate since we dont compile properly anyway) -# - x64 # This is Windows 64bits +# scripts that are called at very beginning, before repo cloning +init: +- cmake --version +- msbuild /version +- git config --global core.longpaths true +- git config --global core.autocrlf input environment: - BOOST_ROOT: c:\Libraries\boost - BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib - MSYS2_BASEVER: 20150512 - MSYS2_ARCH: x86_64 + global: + BOOST_ROOT: c:\Libraries\boost_1_59_0 + BOOST_LIBRARYDIR: c:\Libraries\boost_1_59_0\stage\lib + # BOOST_ROOT: c:\Libraries\boost + # BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib + matrix: + - COMPILER: MinGW-w64 + +# - COMPILER: MSVC15 +# PLATFORM: Win32 +# - COMPILER: MSVC15 +# PLATFORM: x64 + install: -- appveyor DownloadFile "http://kent.dl.sourceforge.net/project/msys2/Base/%MSYS2_ARCH%/msys2-base-%MSYS2_ARCH%-%MSYS2_BASEVER%.tar.xz" -FileName "msys2.tar.xz" -- 7z x msys2.tar.xz -- 7z x msys2.tar > NUL -- msys64\usr\bin\bash -lc "" -- msys64\usr\bin\bash -lc "for i in {1..3}; do pacman --noconfirm -Suy gcc make cmake perl && break || sleep 15; done" -#- set PATH=C:\mingw64\bin;%PATH% -#- set CC=gcc +- if [%COMPILER%]==[MinGW] set PATH=C:\MinGW\bin;%PATH% +- if [%COMPILER%]==[MinGW] mingw-get update +- if [%COMPILER%]==[MinGW] rename "C:\Program Files (x86)\Git\bin\sh.exe" "sh2.exe" +- if [%COMPILER%]==[MinGW-w64] set PATH=C:\mingw64\bin;%PATH% +- if [%COMPILER%]==[MinGW-w64] rename "C:\Program Files (x86)\Git\bin\sh.exe" "sh2.exe" +- if [%COMPILER%]==[MinGW-w64] appveyor DownloadFile "https://raw.githubusercontent.com/symengine/dependencies/5cff7d1736877336cf9fb58267111beea4fa152f/x86_64-4.9.1-release-posix-seh-rt_v3-rev1.7z" -FileName mw64.7z +- if [%COMPILER%]==[MinGW-w64] 7z x -oC:\ mw64.7z > NUL +- if [%COMPILER%]==[MSYS2] set PATH=C:\msys64\bin,%PATH% build_script: -- msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; PATH=$PATH:/mingw64/bin:/mingw32/bin; exec 0