-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
61 lines (52 loc) · 1.55 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
image:
- Visual Studio 2017
configuration:
- Debug
- Release
environment:
ftp_password:
secure: edNpE3aPKyOzzhE2sb6CKg==
install:
- echo "Environment"
- set
- cmake --version
- echo "Downloading conan..."
- set PATH=%PATH%;%PYTHON%/Scripts/
- pip.exe install conan
- conan --version
- conan remote add owl https://api.bintray.com/conan/zethon/owl
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
build_script:
- mkdir build
- cd build
- conan install .. --build missing -s build_type=%configuration%
- cmake .. -DCMAKE_BUILD_TYPE=%configuration% "-GVisual Studio 15 2017 Win64" -DCMAKE_PREFIX_PATH=C:/Qt/5.11/msvc2017_64 -DBUILD_GUI=ON -DBUILD_CONSOLE=ON -DBUILD_TEST=ON
- cmake --build . --config %configuration% -- /maxcpucount:4
test_script:
- set PATH=%PATH%;C:\Qt\5.11\msvc2017_64\bin
- ctest -VV -C "%configuration%" --schedule-random --output-on-failure
after_test:
- if "%configuration%"=="Release" ..\installers\windows\build.cmd
artifacts:
# References here need to have "build\" prepended since
# the context here is from the original build folder
# before we "cd build"
- path: build\owl-*.exe
name: OwlInstallers
deploy:
provider: FTP
protocol: ftp
host: ftp.owlclient.com
username: [email protected]
password:
secure: P7iZrcnNk20p8pi9kuUktg==
folder: /public_html/artifacts
on:
branch: master
configuration: Release
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true