forked from njoy/NJOY2016
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
78 lines (71 loc) · 3.13 KB
/
appveyor.yml
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
image:
- "Visual Studio 2017"
shallow_clone: false
environment:
MINGW_DIR: C:\msys64\mingw64\bin
Path: C:\Python34-x64\;%MINGW_DIR%;%Path%
matrix:
-
CMAKE_BUILD: cygwin
STATIC_LIBS: true
CYGWIN_NOWINPATH: yes
clone_folder: "C:\\cygwin\\projects\\NJOY2016"
CYG_BASH: C:\cygwin\bin\bash
CYG_CACHE: C:\cygwin\var\cache\setup
CYG_MIRROR: http://cygwin.mirror.constant.com
CYG_ROOT: C:\cygwin
CC: /usr/bin/gcc
CXX: /usr/bin/g++
FC: /usr/bin/gfortran
-
CMAKE_BUILD: MSYS
STATIC_LIBS: true
clone_folder: "C:\\projects\\NJOY2016"
CC: "%MINGW_DIR%\\gcc.exe"
CXX: "%MINGW_DIR%\\g++.exe"
FC: "%MINGW_DIR%\\gfortran.exe"
TMP_PATH: "C:\\Program Files (x86)\\CMake\\bin;C:\\Python34-x64;%MINGW_DIR%;C:\\Program Files\\Git\\cmd;C:\\msys64;C:\\Program Files\\Git\\usr\\bin"
-
CMAKE_BUILD: MSYS
STATIC_LIBS: false
clone_folder: "C:\\projects\\NJOY2016"
CC: "%MINGW_DIR%\\gcc.exe"
CXX: "%MINGW_DIR%\\g++.exe"
FC: "%MINGW_DIR%\\gfortran.exe"
TMP_PATH: "C:\\Program Files (x86)\\CMake\\bin;C:\\Python34-x64;%MINGW_DIR%;C:\\Program Files\\Git\\cmd;C:\\msys64;C:\\Program Files\\Git\\usr\\bin"
-
CMAKE_BUILD: MinGW
STATIC_LIBS: true
clone_folder: "C:\\projects\\NJOY2016"
CC: "%MINGW_DIR%\\gcc.exe"
CXX: "%MINGW_DIR%\\g++.exe"
FC: "%MINGW_DIR%\\gfortran.exe"
TMP_PATH: "C:\\Program Files (x86)\\CMake\\bin;C:\\Python34-x64;%MINGW_DIR%;C:\\Program Files\\Git\\cmd;C:\\msys64;C:\\Program Files\\Git\\usr\\bin"
-
CMAKE_BUILD: MinGW
STATIC_LIBS: false
clone_folder: "C:\\projects\\NJOY2016"
CC: "%MINGW_DIR%\\gcc.exe"
CXX: "%MINGW_DIR%\\g++.exe"
FC: "%MINGW_DIR%\\gfortran.exe"
TMP_PATH: "C:\\Program Files (x86)\\CMake\\bin;C:\\Python34-x64;%MINGW_DIR%;C:\\Program Files\\Git\\cmd;C:\\msys64;C:\\Program Files\\Git\\usr\\bin"
init:
- if [%CMAKE_BUILD%]==[cygwin] git config --global core.autocrlf input
install:
- if [%CMAKE_BUILD%]==[cygwin] C:\cygwin\setup-x86.exe -q --root %CYG_ROOT% --local-package-dir %CYG_CACHE% --packages cmake,make,git,python3,gcc-core,gcc-g++,gcc-fortran --force-current --no-shortcuts --no-startmenu --no-desktop
before_build:
- if not [%CMAKE_BUILD%]==[cygwin] set OrigPath=%Path%
- if [%CMAKE_BUILD%]==[cygwin] set Path=C:\cygwin\bin
build_script:
- mkdir build
- cd build
- if [%CMAKE_BUILD%]==[cygwin] %CYG_BASH% -c "/usr/bin/cmake -D static=%STATIC_LIBS% -G \"Unix Makefiles\" .."
- if [%CMAKE_BUILD%]==[cygwin] %CYG_BASH% -c "/usr/bin/make -j2"
# Non-cygwin builds
- if not [%CMAKE_BUILD%]==[cygwin] set Path=%TMP_PATH%
- if not [%CMAKE_BUILD%]==[cygwin] cmake -D CMAKE_Fortran_COMPILER=C:/msys64/mingw64/bin/gfortran.exe -D CMAKE_MAKE_PROGRAM=C:/msys64/mingw64/bin/mingw32-make.exe -D static=%STATIC_LIBS% -G "%CMAKE_BUILD% Makefiles" ..
- if not [%CMAKE_BUILD%]==[cygwin] set Path=%OrigPath%
- if not [%CMAKE_BUILD%]==[cygwin] mingw32-make -j2
after_build:
- if [%CMAKE_BUILD%]==[cygwin] %CYG_BASH% -c "ctest -j2 --output-on-failure"
- if not [%CMAKE_BUILD%]==[cygwin] ctest -j2 --output-on-failure