File: appveyor.yml

package info (click to toggle)
openturns 1.11-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 64,144 kB
  • sloc: cpp: 202,072; python: 31,104; ansic: 8,352; makefile: 358; sh: 279; yacc: 123; lex: 43
file content (78 lines) | stat: -rw-r--r-- 4,114 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
environment:
  matrix:
    - VS_GEN: Visual Studio 10 2010
    - VS_GEN: Visual Studio 14 2015

install:
  - appveyor-retry appveyor DownloadFile https://downloads.sourceforge.net/openblas/v0.2.15/OpenBLAS-v0.2.15-Win32.zip
  - 7z x OpenBLAS-v0.2.15-Win32.zip -oC:\Libraries > nil

  - appveyor-retry appveyor DownloadFile http://sourceforge.net/projects/openblas/files/v0.2.15/mingw32_dll.zip
  - 7z x mingw32_dll.zip -oC:\Libraries > nil

  - appveyor-retry appveyor DownloadFile https://sourceforge.net/projects/swig/files/swigwin/swigwin-3.0.12/swigwin-3.0.12.zip
  - 7z x swigwin-3.0.12.zip -oC:\Libraries > nul

  - git clone https://bitbucket.org/dbarbier/ot-superbuild.git

  - appveyor-retry appveyor DownloadFile http://xmlsoft.org/sources/libxml2-sources-2.9.5.tar.gz
  - 7z x libxml2-sources-2.9.5.tar.gz > nul
  - 7z x libxml2-sources-2.9.5.tar -oC:\Libraries > nul
  - copy ot-superbuild\libxml2.cmake\CMakeLists.txt C:\Libraries\libxml2-2.9.5
  - pushd C:\Libraries\libxml2-2.9.5
  - cmake -G"%VS_GEN%" -DCMAKE_INSTALL_PREFIX=C:\Libraries\libxml2 -DBUILD_SHARED_LIBS=OFF .
  - cmake --build . --config Release --target install
  - cd %APPVEYOR_BUILD_FOLDER%

  - appveyor-retry appveyor DownloadFile https://github.com/beltoforion/muparser/archive/v2.2.5.zip
  - 7z x v2.2.5.zip -oC:\Libraries > nul
  - copy ot-superbuild\muParser.cmake\CMakeLists.txt C:\Libraries\muparser-2.2.5
  - pushd C:\Libraries\muparser-2.2.5
  - cmake -G"%VS_GEN%" -DCMAKE_INSTALL_PREFIX=%CD:\=/% -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF .
  - cmake --build . --config Release --target install
  - cd %APPVEYOR_BUILD_FOLDER%

  - git clone https://github.com/stevengj/nlopt.git
  - pushd nlopt
  - cmake -G"%VS_GEN%" -DCMAKE_INSTALL_PREFIX=C:\Libraries\nlopt -DBUILD_SHARED_LIBS=OFF .
  - cmake --build . --config Release --target install
  - cd %APPVEYOR_BUILD_FOLDER%

  - git clone https://github.com/wjakob/tbb.git
  - pushd tbb
  - cmake -G"%VS_GEN%" -DCMAKE_INSTALL_PREFIX=C:\Libraries\tbb -DTBB_BUILD_TESTS=OFF -DTBB_BUILD_STATIC=OFF .
  - cmake --build . --config Release --target install
  - cd %APPVEYOR_BUILD_FOLDER%

  - appveyor-retry appveyor DownloadFile https://sourceforge.net/projects/gnuwin32/files/diffutils/2.8.7-1/diffutils-2.8.7-1-bin.zip
  - 7z x diffutils-2.8.7-1-bin.zip -oC:\Libraries > nul
  - set PATH=C:\Libraries\bin;%PATH%

  # for sh, tr, cat ...
  - set PATH=C:\msys64\usr\bin;%PATH%

build_script:
  - mkdir build && cd build
  - cmake -G"%VS_GEN%" \
      -DCMAKE_INSTALL_PREFIX=%CD:\=/%/install \
      -DBOOST_ROOT="C:/Libraries/boost_1_63_0" \
      -DLAPACK_LIBRARIES="C:/Libraries/OpenBLAS-v0.2.15-Win32/lib/libopenblas.dll.a" \
      -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="/OPT:NOREF /INCREMENTAL:NO" \
      -DUSE_HMAT=OFF \
      -DUSE_BISON=OFF \
      -DSWIG_EXECUTABLE="C:/Libraries/swigwin-3.0.12/swig.exe" \
      -DUSE_COTIRE=ON -DCOTIRE_MAXIMUM_NUMBER_OF_UNITY_INCLUDES="-j4" \
      -DMUPARSER_LIBRARY=C:/Libraries/muparser-2.2.5/lib/muparser.lib -DMUPARSER_INCLUDE_DIR=C:/Libraries/muparser-2.2.5/include \
      -DTBB_LIBRARY=C:/Libraries/tbb/lib/tbb.lib -DTBB_INCLUDE_DIR=C:/Libraries/tbb/include \
      -DNLOPT_LIBRARY=C:/Libraries/nlopt/lib/nlopt.lib -DNLOPT_INCLUDE_DIR=C:/Libraries/nlopt/include \
      -DLIBXML2_LIBRARIES=C:/Libraries/libxml2/lib/libxml2.lib -DLIBXML2_INCLUDE_DIR=C:/Libraries/libxml2/include \
      ..
  - cmake --build . --config Release --target install
  - set PYTHONPATH=%cd%\install\Lib\site-packages
  - copy install\bin\OT.dll install\Lib\site-packages\openturns
  - copy C:\Libraries\mingw32_dll\libgcc_s_sjlj-1.dll install\Lib\site-packages\openturns
  - copy C:\Libraries\mingw32_dll\libgfortran-3.dll install\Lib\site-packages\openturns
  - copy C:\Libraries\mingw32_dll\libquadmath-0.dll install\Lib\site-packages\openturns
  - copy C:\Libraries\OpenBLAS-v0.2.15-Win32\bin\libopenblas.dll install\Lib\site-packages\openturns
  - copy C:\Libraries\tbb\bin\tbb.dll install\Lib\site-packages\openturns
  - ctest -C Release --output-on-failure --timeout 100 -E "cppcheck|Sequence|Entropy|Sklar|Sample_computation|InverseBox"