Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[appveyor] try to use tesh without cmake to test the java
[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 environment:
16   global:
17     BOOST_ROOT: c:\Libraries\boost_1_59_0
18     BOOST_LIBRARYDIR: c:\Libraries\boost_1_59_0\stage\lib
19     #  BOOST_ROOT: c:\Libraries\boost
20     #  BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib
21     SGROOT: C:/projects/simgrid
22     TESH_ARGS: %SGROOT%/bin/tesh --setenv srcdir=%SGROOT%/examples/java --setenv classpath=%SGROOT%/examples/java;%SGROOT%/teshsuite/java;%SGROOT%/simgrid.jar --cd %SGROOT%/examples/java
23   matrix:
24     - COMPILER: MinGW-w64
25
26 #    - COMPILER: MSVC15
27 #      PLATFORM: Win32
28 #    - COMPILER: MSVC15
29 #      PLATFORM: x64
30       
31 install:
32 - if [%COMPILER%]==[MinGW]     set PATH=C:\MinGW\bin;%PATH%
33 - if [%COMPILER%]==[MinGW]     mingw-get update
34 - if [%COMPILER%]==[MinGW]     rename "C:\Program Files (x86)\Git\bin\sh.exe" "sh2.exe"
35 - if [%COMPILER%]==[MinGW-w64] set PATH=C:\mingw64\bin;%PATH%
36 - if [%COMPILER%]==[MinGW-w64] rename "C:\Program Files (x86)\Git\bin\sh.exe" "sh2.exe"
37 - 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 || appveyor DownloadFile "https://raw.githubusercontent.com/symengine/dependencies/5cff7d1736877336cf9fb58267111beea4fa152f/x86_64-4.9.1-release-posix-seh-rt_v3-rev1.7z" -FileName mw64.7z
38 - if [%COMPILER%]==[MinGW-w64] 7z x -oC:\ mw64.7z > NUL
39 - if [%COMPILER%]==[MSYS2]     set PATH=C:\msys64\bin,%PATH%
40
41 build_script:
42 - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[Win32] cmake -G "Visual Studio 14 2015"       -Denable_java=ON -Denable_smpi=OFF -Denable_mallocators=OFF .
43 - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[x64]   cmake -G "Visual Studio 14 2015 Win64" -Denable_java=ON -Denable_smpi=OFF -Denable_mallocators=OFF .
44 - if not [%COMPILER%]==[MSVC15]                      cmake -G "MinGW Makefiles"             -Denable_java=ON -Denable_smpi=OFF -Denable_mallocators=OFF -Denable_lto=OFF .
45 - if [%COMPILER%]==[MSVC15]     msbuild ALL_BUILD.vcxproj /verbosity:normal
46 - if not [%COMPILER%]==[MSVC15] mingw32-make VERBOSE=1
47 - cd C:/projects/simgrid/examples/java && java -classpath ".;../../simgrid.jar" masterslave.Masterslave ../platforms/platform.xml masterslave/masterslaveDeployment.xml || true
48
49
50 # I cant use the cmake test because of the following error:
51 #   Test project C:/projects/simgrid
52 #        Start   1: mc-replay-random-bug
53 #   ^CTerminate batch job (Y/N)?
54 # How dafuq am I supposed to press N on appveyor?? I tried closing stdin, in vain
55 #- bash -c "cd C:/projects/simgrid; exec 0<&-; ctest --output-on-failure" < nul || true
56
57 test_script:
58 - perl %TESH_ARGS% %SGROOT%/examples/java/async/async.tesh
59 - perl %TESH_ARGS% %SGROOT%/examples/java/bittorrent/bittorrent.tesh
60 - perl %TESH_ARGS% %SGROOT%/examples/java/master_slave_bypass/bypass.tesh
61 - perl %TESH_ARGS% %SGROOT%/examples/java/chord/chord.tesh
62 - perl %TESH_ARGS% %SGROOT%/examples/java/cloud/cloud.tesh
63 - perl %TESH_ARGS% %SGROOT%/examples/java/cloud/migration/migration.tesh
64 - perl %TESH_ARGS% %SGROOT%/examples/java/commTime/commtime.tesh
65 - perl %TESH_ARGS% %SGROOT%/examples/java/kademlia/kademlia.tesh
66 - perl %TESH_ARGS% %SGROOT%/examples/java/master_slave_kill/kill.tesh
67 - perl %TESH_ARGS% %SGROOT%/examples/java/masterslave/masterslave.tesh
68 - perl %TESH_ARGS% %SGROOT%/examples/java/migration/migration.tesh
69 - perl %TESH_ARGS% %SGROOT%/examples/java/mutualExclusion/mutualexclusion.tesh
70 - perl %TESH_ARGS% %SGROOT%/examples/java/pingPong/pingpong.tesh
71 - perl %TESH_ARGS% %SGROOT%/examples/java/priority/priority.tesh
72 - perl %TESH_ARGS% %SGROOT%/examples/java/startKillTime/startKillTime.tesh
73 - perl %TESH_ARGS% %SGROOT%/examples/java/surfCpuModel/surf_cpu_model.tesh
74 - perl %TESH_ARGS% %SGROOT%/examples/java/surfPlugin/surf_plugin.tesh
75 - perl %TESH_ARGS% %SGROOT%/examples/java/reservationSurfPlugin/reservation_surf_plugin.tesh
76 - perl %TESH_ARGS% %SGROOT%/examples/java/suspend/suspend.tesh
77 - perl %TESH_ARGS% %SGROOT%/examples/java/tracing/tracingPingPong.tesh
78
79 artifacts:
80 - path: simgrid.jar
81   name: jarfile
82
83 # notifications:
84 # - irc: "irc.debian.org#simgrid" # Not implemented by AppVeyor yet :(
85 # Some source of inspiration:
86
87 # https://github.com/sympy/symengine/blob/master/appveyor.yml <- MS, mingw & mingw64
88
89 # https://github.com/dartsim/dart/blob/master/appveyor.yml
90 # https://github.com/osmcode/libosmium/blob/master/appveyor.yml
91 # https://github.com/polysquare/cmake-unit/blob/master/appveyor.yml
92 # https://github.com/openvswitch/ovs/blob/master/appveyor.yml
93
94 # https://github.com/behdad/harfbuzz/pull/112/files