forked from GENIVI/CANdevStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
66 lines (54 loc) · 2.92 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
version: 1.0.{build}
environment:
BINTRAY_API_KEY:
secure: 5VhWtDtya2N1yL9pbFGQbFdH2+zbg7FZ0O3rONMv0GJ8uQIEyJHBPYuJjdWhcaLO
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: '"MinGW Makefiles"'
BUILD_TYPE: Release
QT_PATH: C:\Qt\5.15.0\mingw81_32
BOOST_PATH: C:\Libraries\boost_1_73_0
PACKAGE: 1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: '"Visual Studio 14 2015"'
BUILD_TYPE: Release
QT_PATH: C:\Qt\5.6\msvc2015
BOOST_PATH: C:\Libraries\boost_1_67_0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: '"MinGW Makefiles"'
BUILD_TYPE: Debug
QT_PATH: C:\Qt\5.11\mingw53_32
BOOST_PATH: C:\Libraries\boost_1_67_0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: '"Visual Studio 14 2015"'
BUILD_TYPE: Debug
QT_PATH: C:\Qt\5.6\msvc2015
BOOST_PATH: C:\Libraries\boost_1_67_0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: '"Visual Studio 14 2015 Win64"'
BUILD_TYPE: Debug
QT_PATH: C:\Qt\5.11\msvc2015_64
BOOST_PATH: C:\Libraries\boost_1_67_0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: '"Visual Studio 14 2015 Win64"'
BUILD_TYPE: Release
QT_PATH: C:\Qt\5.11\msvc2015_64
BOOST_PATH: C:\Libraries\boost_1_67_0
install:
- cmd: git submodule update --init --recursive
build_script:
- cmd: >-
mkdir build
cd build
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set PATH=C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin;C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
cmake .. -G %GENERATOR% -DCMAKE_PREFIX_PATH=%QT_PATH% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DBOOST_INCLUDEDIR=%BOOST_PATH%
cmake --build . --config %BUILD_TYPE%
set MAKE_PACKAGE=false
if DEFINED PACKAGE if "%APPVEYOR_REPO_BRANCH%"=="master" if not DEFINED APPVEYOR_PULL_REQUEST_NUMBER set MAKE_PACKAGE=true
if "%MAKE_PACKAGE%"=="true" cpack -G 7Z && cmake . -DSTANDALONE=ON && cpack -G 7Z && mkdir ..\master && move *.7z ..\master && cmake . -DDEV_BUILD=OFF && cpack -G 7Z && cmake . -DSTANDALONE=OFF && cpack -G 7Z && mkdir ..\rc && move *.7z ..\rc
if "%MAKE_PACKAGE%"=="true" cd ..\master && for /f %%f in ('dir /b') do curl -T %%f -urkollataj:%BINTRAY_API_KEY% https://api.bintray.com/content/rkollataj/CANdevStudio/master/%APPVEYOR_REPO_COMMIT:~0,7%/%%f;override=1
if "%MAKE_PACKAGE%"=="true" curl -urkollataj:%BINTRAY_API_KEY% -X POST https://api.bintray.com/content/rkollataj/CANdevStudio/master/%APPVEYOR_REPO_COMMIT:~0,7%/publish
if "%MAKE_PACKAGE%"=="true" cd ..\rc && for /f %%f in ('dir /b') do curl -T %%f -urkollataj:%BINTRAY_API_KEY% https://api.bintray.com/content/rkollataj/CANdevStudio/cds/rc/%%f;override=1
if "%MAKE_PACKAGE%"=="true" curl -urkollataj:%BINTRAY_API_KEY% -X POST https://api.bintray.com/content/rkollataj/CANdevStudio/cds/rc/publish
test: off