forked from qreal/qreal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
101 lines (83 loc) · 3.25 KB
/
appveyor.yml
File metadata and controls
101 lines (83 loc) · 3.25 KB
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
#version: 999.{branch}-{build}
clone_folder: c:\qreal
#test: off
clone_depth: 1
#shallow_clone: true
skip_commits:
files:
- 'buildScripts/travis/*'
- '.travis.yml'
- '**/*.html'
- '**/*.txt'
- '**/*.md'
message: /\[NOCI\]/
environment:
global:
MSYS_DIR: C:\msys64
APPVEYOR_SAVE_CACHE_ON_ERROR: true
PYTHON_PATH: C:\Python35
PYTHON_LIB: '%PYTHON_PATH%\libs'
CCACHE_DIR: C:\ccache.cache
BUILD_DIR: '%APPVEYOR_BUILD_FOLDER%\.build'
PROJECT_FILE: qrealRobotsTest
TEST_SUITE: .\robots_kitBase_unittests.exe && .\robots_interpreterCore_unittests.exe && .\robots_twoDModel_unittests.exe && .\trik-v62-qts-generator-tests.exe && .\robots_utils_unittests.exe"
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9
matrix:
# - PROJECT_FILE: qreal
- MINGW: C:\Qt\Tools\mingw530_32
QTDIR: C:\Qt\5.11\mingw53_32
- MINGW: C:\Qt\Tools\mingw492_32
QTDIR: C:\Qt\5.6\mingw49_32
configuration:
# - debug
- release
#cache:
# - '%BUILD_DIR% -> **\*.pr?, appveyor.yml'
# - '%CCACHE_DIR% -> **\*.pr?, appveyor.yml'
# - C:\ProgramData\chocolatey\bin -> appveyor.yml
# - C:\ProgramData\chocolatey\lib -> appveyor.yml
# - '%MSYS_DIR%\var\cache\pacman\pkg -> appveyor.yml'
init:
- git config --global core.autocrlf true
- if "x%appveyor_pull_request_number%" NEQ "x" set APPVEYOR_CACHE_SKIP_SAVE=true
- if "x%appveyor_repo_branch%" NEQ "xmaster" set APPVEYOR_CACHE_SKIP_SAVE=true
clone_script:
- cmd: |
git clone --progress --depth=3 --single-branch --no-checkout --branch=%appveyor_repo_branch% https://github.com/%appveyor_repo_name%.git %appveyor_build_folder%
cd %appveyor_build_folder%
if "x%appveyor_pull_request_number%" == "x" ( git checkout -f %appveyor_repo_commit% ) else ( git fetch origin +refs/pull/%appveyor_pull_request_number%/merge: && git checkout -f FETCH_HEAD )
git submodule update --init --recursive
install:
- set PATH=%QTDIR%\bin;%MINGW%\bin;C:\msys64\usr\bin;%PATH%
- pacman --verbose --noconfirm --sync ccache rsync curl
#--refresh --sysupgrade --ask=20
- ccache.exe -V || appveyor DownloadFile "http://alam.srb2.org/ccache.exe" -FileName "ccache.exe" && xcopy /Y /V /I ccache.exe %MINGW%\bin && ccache -V
- ccache -p || echo "Failed to print ccache config (missing -p option)"
- if not exist %BUILD_DIR% mkdir %BUILD_DIR%
- du -sh %BUILD_DIR% %CCACHE_DIR%
- ccache -M 900M
- which g++
- g++ --version
- dir C:\Qt\Tools\
- dir C:\Qt
before_build:
- curl https://raw.githubusercontent.com/MestreLion/git-tools/master/git-restore-mtime-bare > .fix-mtime.py
- python "%PYTHON_PATH%\Tools\scripts\2to3.py" -v -p -w -n -f all .fix-mtime.py
- sed -ri "s#line.(startswith|split)\(#line.\1\(b#g" .fix-mtime.py
- python .fix-mtime.py
- git submodule foreach --recursive python %cd%\.fix-mtime.py
build_script:
- cd %BUILD_DIR%
- qmake %APPVEYOR_BUILD_FOLDER%\%PROJECT_FILE%.pro -spec win32-g++ CONFIG+=%CONFIGURATION% CONFIG+=silent # QMAKE_CXX="ccache g++"
- mingw32-make -j2 qmake_all
- mingw32-make -j2 -k all
test_script:
- echo %cd%
- cd %APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%
- dir
- cmd /c %TEST_SUITE%
on_finish:
- ccache -s
artifacts:
- path: bin\$(configuration)
name: qreal-$(configuration)-$(PROJECT_FILE)