-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.appveyor.yml
46 lines (39 loc) · 1.64 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
branches:
only:
- master
build: false
platform:
- x64
image:
- Visual Studio 2017
environment:
matrix:
- RUN_FORTRAN_EXAMPLES: yes
MINGW_DIR: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
- TEST_IMPORT_PYTHON_MODULE: yes
MINGW_DIR: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
install:
- cmd: set PATH=%MINGW_DIR%;%PATH%
- if "%TEST_IMPORT_PYTHON_MODULE%"=="yes" set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- echo "%PATH%"
- cmake --version
- mingw32-make --version
- if "%TEST_IMPORT_PYTHON_MODULE%"=="yes" python --version
- if "%TEST_IMPORT_PYTHON_MODULE%"=="yes" python -m ensurepip
- if "%TEST_IMPORT_PYTHON_MODULE%"=="yes" python -m pip install --upgrade pip setuptools wheel
- if "%TEST_IMPORT_PYTHON_MODULE%"=="yes" python -m pip install scikit-build ninja numpy
- # CMake refuses to generate MinGW Makefiles if sh.exe is in the Path
- ps: Get-Command sh.exe -All | Remove-Item
build_script:
- if "%RUN_FORTRAN_EXAMPLES%"=="yes" mkdir build
- if "%RUN_FORTRAN_EXAMPLES%"=="yes" cd build
- if "%RUN_FORTRAN_EXAMPLES%"=="yes" cmake -G "MinGW Makefiles" -DBUILD_FASTSCAPELIB_SHARED=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Debug ..
- if "%RUN_FORTRAN_EXAMPLES%"=="yes" cmake --build .
- if "%TEST_IMPORT_PYTHON_MODULE%"=="yes" python -m pip install . --no-build-isolation
test_script:
- if "%RUN_FORTRAN_EXAMPLES%"=="yes" cd examples
- if "%RUN_FORTRAN_EXAMPLES%"=="yes" Fan
- if "%TEST_IMPORT_PYTHON_MODULE%"=="yes" python -c "import sys; sys.path.pop(0); import fastscapelib_fortran"