forked from fougue/mayo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
72 lines (59 loc) · 1.81 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
version: 0.5_build{build}
image: Visual Studio 2017
platform: x64
configuration: Release
clone_folder: c:\projects\mayo
branches:
only:
- develop
- master
matrix:
fast_finish: true
environment:
matrix:
- APPVEYOR_OCC_VERSION: 7.4.0
- APPVEYOR_OCC_VERSION: 7.5.0
cache:
- OpenCASCADE-7.4.0-vc14-64.rar
- OpenCASCADE-7.5.0-vc14-64.rar
install:
- if not exist OpenCASCADE-%APPVEYOR_OCC_VERSION%-vc14-64.rar
appveyor DownloadFile http://www.fougue.pro/share/bin/OpenCASCADE-%APPVEYOR_OCC_VERSION%-vc14-64.rar -FileName OpenCASCADE-%APPVEYOR_OCC_VERSION%-vc14-64.rar
- 7z x OpenCASCADE-%APPVEYOR_OCC_VERSION%-vc14-64.rar
before_build:
- echo JOB_NAME=%APPVEYOR_JOB_NAME%
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- call "OpenCASCADE-%APPVEYOR_OCC_VERSION%-vc14-64\opencascade-%APPVEYOR_OCC_VERSION%\env.bat"
- set PATH=C:\Qt\5.13\msvc2017_64\bin;%PATH%
- set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
- qmake --version
- echo NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%
build_script:
- mkdir build-%APPVEYOR_OCC_VERSION%
- cd build-%APPVEYOR_OCC_VERSION%
- qmake ..\mayo.pro
- jom -j%NUMBER_OF_PROCESSORS%
- cd ..
test_script:
- mkdir build-tests-%APPVEYOR_OCC_VERSION%
- cd build-tests-%APPVEYOR_OCC_VERSION%
- qmake ..\tests\mayo_tests.pro
- jom -j%NUMBER_OF_PROCESSORS%
- release\mayo_tests.exe
- cd ..
after_test:
- if "%APPVEYOR_OCC_VERSION%"=="7.5.0" (
cd build-%APPVEYOR_OCC_VERSION%\installer &&
iscc setup.iss &&
cd ..\..
)
artifacts:
- path: build-%APPVEYOR_OCC_VERSION%\installer\Output\mayo_*_installer.exe
name: MayoInstallerWin64
on_success:
- ps: >-
if ($true)
{
Write-Host "Success"
}