Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
81ed3ece384df14fa6dd459a5595169c23a812c3
[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 version: "{build}"
5 clone_depth: 1
6
7 platform: 
8   - Win32 # This is Windows 32bits (don't activate since we dont compile properly anyway)
9 #  - x64   #┬áThis is Windows 64bits
10
11 environment:
12   BOOST_ROOT: c:\Libraries\boost
13   BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib
14
15 #before_build:
16 #- call "C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/Tools/vsvars32.bat"
17 #- cd c:\projects\simgrid
18 # - cmake -G "Visual Studio 12 2013" -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DBoost_USE_STATIC_LIBS="ON" -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF -Denable_tracing=ON -Denable_java=ON .
19 # - dir c:\projects\simgrid
20 # - cmake --build . # be brutal: cmake is my only friend in this windows world.
21
22 before_build:
23 - ps: >-
24     mkdir C:\pthreads-win32
25     
26     $source = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip"
27     
28     $destination = "C:\pthreads-win32\pthreads-win32.zip"
29     
30     Invoke-WebRequest $source -OutFile $destination
31
32     cd C:\pthreads-win32
33     
34     7z x C:\pthreads-win32\pthreads-win32.zip
35     
36 build_script:
37 - '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd"'
38 - C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab"
39 - C:\MinGW\msys\1.0\bin\bash -lc "printenv"
40 - C:\MinGW\msys\1.0\bin\bash -lc "cp /c/pthreads-win32/Pre-built.2/include/* /c/MinGW/include"
41 - C:\MinGW\msys\1.0\bin\bash -lc "cp /c/pthreads-win32/Pre-built.2/dll/x86/* /c/MinGW/bin"
42 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/projects/simgrid && cmake -G \"MSYS Makefiles\" -DBOOST_ROOT=\"%BOOST_ROOT%\" -DBOOST_LIBRARYDIR=\"%BOOST_LIBRARYDIR%\" -DBoost_USE_STATIC_LIBS=ON -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF -Denable_tracing=ON -Denable_java=ON ."
43 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/projects/simgrid; echo XXX simgrid_config.h; cat include/simgrid_config.h"
44 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/projects/simgrid; echo XXX src/internal_config.h; cat src/internal_config.h"
45 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/projects/simgrid; echo XXX Internal builtins; gcc -dM -E - < /dev/null"
46 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/projects/simgrid && make"
47
48 test_script:
49   cmd: ctest -VV
50
51 # notifications:
52 # - irc: "irc.debian.org#simgrid" # Not implemented by AppVeyor yet :(
53 # Some source of inspiration:
54 # https://github.com/dartsim/dart/blob/master/appveyor.yml
55 # https://github.com/osmcode/libosmium/blob/master/appveyor.yml
56 # https://github.com/polysquare/cmake-unit/blob/master/appveyor.yml
57 # https://github.com/openvswitch/ovs/blob/master/appveyor.yml