-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
83 lines (76 loc) · 2.85 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
79
80
81
82
83
##
# The autocmake project test configuration for Windows OS at AppVeyor
#
# Current software used:
# OS: 64-bit Windows Server 2012 R2
# Compilers: 64-bit MinGw-w64 5.1.0 (downloaded during script execution)
# Python: 2.7, both 32-bit and 64-bit versions
# Python: 3.4, both 32-bit and 64-bit versions
#
# Notes:
# Where "ps:" is used commands are executed in PowerShell
##
## Script assembled by Ivan Hrasko, adapted by Miro Ilias
##
# build version format: 1.0.1, 1.0.2, ...
version: 1.0.{build}
# prepare environment
environment:
# set custom path to avoid sh.exe conflict between git and cmake !
path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\7-Zip;C:\Program Files (x86)\CMake\bin
# set MinGw-w64 (64-bit) version 5.1.0 download URL
url: http://kent.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/5.1.0/threads-posix/seh/x86_64-5.1.0-release-posix-seh-rt_v4-rev0.7z
# user can possibly use different Python versions, we try to test multiple cases
# 64-bit version on 64-bit system allows easier installation of Python packages using .exe installers
# and better CMake automatic detection of some Python tools
matrix:
# Python 2.7; 32-bit version
- python: C:\Python27;C:\Python27\Scripts
# Python 2.7; 64-bit version
- python: C:\Python27-x64;C:\Python27-x64\Scripts
# Python 3.4; 32-bit version
- python: C:\Python34;C:\Python34\Scripts
# Python 3.4; 64-bit version
- python: C:\Python34-x64;C:\Python34-x64\Scripts
build_script:
# add location of used Python to path
- set path=%path%;%python%
# create dir for custom software and move there
- mkdir C:\software && cd C:\software
# download and unpack MinGw-w64 compilers
- ps: wget $env:url -OutFile MinGW.7z
- 7z x MinGW.7z > NUL
# add compilers binary dir to path
- set path=%path%;C:\software\mingw64\bin
- echo %path%
# go to the project source dir
- cd %APPVEYOR_BUILD_FOLDER%
# static+coverage is causing SegFault (?), try remove coverage...
#- python setup.py --generator="MinGW Makefiles" --fc=gfortran --int64 --static build_gfortran_int64_static
#- cd build_gfortran_int64_static
#- mingw32-make
#- bin\example.exe
#- cd ..
#- python setup --generator="MinGW Makefiles" --fc=gfortran build_gfortran
#- cd build_gfortran
#- mingw32-make
#- bin\example.exe
#- cd ..
# next round
#- python setup --generator="MinGW Makefiles" --fc=gfortran --int64 build_gfortran_int64
#- cd build_gfortran_int64
#- mingw32-make
#- bin\example.exe
#- cd ..
# next round
- python setup --generator="MinGW Makefiles" --fc=gfortran build_gfortran
- cd build_gfortran
- mingw32-make
- bin\example.exe
- cd ..
# next round
- python setup --generator="MinGW Makefiles" --fc=gfortran --coverage build_gfortran_coverage
- cd build_gfortran_coverage
- mingw32-make
- bin\example.exe
- cd ..