-
Notifications
You must be signed in to change notification settings - Fork 24
/
appveyor.yml
106 lines (88 loc) · 3.4 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
os: Windows Server 2012 R2
platform:
- x86
- x64
configuration:
- Release
branches:
only:
- master
install:
- git fetch --tags
- echo APPVEYOR_REPO_TAG_NAME %APPVEYOR_REPO_TAG_NAME%
- echo APPVEYOR_REPO_TAG %APPVEYOR_REPO_TAG%
- echo appveyor_repo_tag_name %appveyor_repo_tag_name%
- echo appveyor_repo_tag %appveyor_repo_tag%
- ps: echo $env:platform
- ps: Get-ChildItem "C:\Qt\5.10\"
- ps: if ($env:platform -eq 'x64') {$env:QTDIR = "C:\Qt\5.10\msvc2015_64"}
- ps: if ($env:platform -eq 'x86') {$env:QTDIR = "C:\Qt\5.10\msvc2015"}
- ps: echo $env:QTDIR
- ps: Get-ChildItem C:\Qt\5.10
- set PATH=%PATH%;%QTDIR%\bin
- ps: Get-ChildItem "C:\Program Files (x86)\"
- ps: Get-ChildItem "C:\Program Files\"
# - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /%PLATFORM% /Release'
- ps: cd "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"
- echo %PLATFORM%
# - cmd: if "%PLATFORM%" == "x64" call vcvarsall.bat amd64
- if "%PLATFORM%" == "x86" call vcvarsall.bat x86
- if "%PLATFORM%" == "x64" call vcvarsall.bat amd64
# - ps: if ($env:platform -eq 'x64') {.\vcvarsall.bat amd64}
# - ps: if ($env:platform -eq 'x86') {.\vcvarsall.bat x86}
#- cmd: vcvarsall amd64
- ps: cd "C:\projects\fmit"
- ps: New-Item -ItemType directory -Name lib
- ps: cd lib
- ps: echo "Install FFTW3"
- ps: if ($env:platform -eq 'x64') {$libfft = "fftw-3.3.4-dll64"}
- ps: if ($env:platform -eq 'x86') {$libfft = "fftw-3.3.4-dll32"}
- ps: echo $libfft
- ps: New-Item -ItemType directory -Name $libfft | Out-Null
- ps: cd $libfft
# - echo %CD%
- ps: Invoke-WebRequest "ftp://ftp.fftw.org/pub/fftw/$libfft.zip" -OutFile "$libfft.zip"
- ps: Get-ChildItem .
# - appveyor DownloadFile "ftp://ftp.fftw.org/pub/fftw/$libfft.zip"
- ps: 7z x "$libfft.zip" -y
- ps: lib /machine:$env:platform /def:libfftw3-3.def
- ps: Get-ChildItem .
- ps: cd ..
- ps: Move-Item "$libfft" libfft
# - ps: Get-ChildItem C:\projects\dfasma\lib\fftw-3.3.4-dll32
# - ps: lib /MACHINE:X86 /def:libfftw3-3.def # Needed only for MSVC (lib is still unrecognized command)
- ps: cd ..
- choco install -y InnoSetup
- ps: cd "c:\projects\fmit"
build_script:
- qmake "FFT_LIBDIR=C:\projects\fmit\lib\libfft" fmit.pro
# - ps: Get-ChildItem .
- set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
- C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release
# Build package
- ps: Get-ChildItem c:\projects\fmit\lib
- ps: Get-ChildItem c:\projects\fmit\lib\libfft
- ps: .\distrib\package_windows_appveyor.ps1 $env:platform
- ps: Move-Item distrib\fmit_*_win*.exe .
- ps: Get-ChildItem .
#- ps: $GITPROJECTVERSION = (git describe --tags --always) | Out-String
#- ps: $GITPROJECTVERSION = $GITPROJECTVERSION -replace "`n|`r"
#- ps: echo "Version $GITPROJECTVERSION"
- echo APPVEYOR_REPO_TAG_NAME %APPVEYOR_REPO_TAG_NAME%
- if defined APPVEYOR_REPO_TAG_NAME set RELEASEVERSION=%APPVEYOR_REPO_TAG_NAME:~1%
- echo Version %RELEASEVERSION%
artifacts:
- path: fmit_*_win*.exe
name: newinstallers # Reference used for deployment
deploy:
- provider: GitHub
release: Version $(releaseversion)
tag: $(appveyor_repo_tag_name)
auth_token:
secure: pKUxn8xzw5qwxh3aFQ4QSgGB04BEMwIkJAJk5FGxkvH4uTUFT1SRnoCLqokUXg35
artifact: newinstallers
draft: true
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only
#branch: /v\d+\.\d+\.\d+/ # Doesn't work anymore