1#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10#   http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20# build Apache Thrift on AppVeyor - https://ci.appveyor.com
21
22version: '0.14.0.{build}'
23
24shallow_clone: true
25
26branches:
27  only:
28    - master
29    - /^(release/)?\d+\.\d+\.\d+$/
30
31os:
32  - Visual Studio 2017
33
34matrix:
35  fast_finish: true
36
37environment:
38  matrix:
39   - PROFILE: MSVC2017
40     PLATFORM: x64
41     CONFIGURATION: Release
42     BUILD_SHARED_LIBS: ON
43     BOOST_VERSION: 1.67.0
44     LIBEVENT_VERSION: 2.1.8
45     PYTHON_VERSION: 3.6
46     QT_VERSION: 5.10
47     ZLIB_VERSION: 1.2.11
48
49   - PROFILE: MSVC2015
50     PLATFORM: x86
51     CONFIGURATION: Debug
52     BUILD_SHARED_LIBS: OFF
53     BOOST_VERSION: 1.62.0
54     LIBEVENT_VERSION: 2.0.22
55     PYTHON_VERSION: 3.5
56     QT_VERSION: 5.8
57     ZLIB_VERSION: 1.2.8
58     APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
59
60   - PROFILE: MINGW
61     PLATFORM: x64
62     CONFIGURATION: RelWithDebInfo
63     DISABLED_TESTS: (StalenessCheckTest)
64
65   - PROFILE: CYGWIN
66     PLATFORM: x64
67     CONFIGURATION: RelWithDebInfo
68     DISABLED_TESTS: (ZlibTest|OpenSSLManualInitTest|TNonblockingServerTest)
69
70install:
71  - cd %APPVEYOR_BUILD_FOLDER%
72  - call build\appveyor\%PROFILE:~0,4%-appveyor-install.bat
73  - refreshenv
74
75build_script:
76  - cd %APPVEYOR_BUILD_FOLDER%
77  - call build\appveyor\%PROFILE:~0,4%-appveyor-build.bat
78
79test_script:
80  - cd %APPVEYOR_BUILD_FOLDER%
81  - call build\appveyor\%PROFILE:~0,4%-appveyor-test.bat
82
83
84# artifact capture disabled as it might increase service cost for little gain:
85#
86# artifacts:
87#  - path: local-thrift-inst
88#    name: cmake installed content
89#    type: zip
90#
91#  - path: local-thrift-build\Testing
92#    name: ctest output
93#    type: zip
94
95# RDP support: use one or the other...
96#
97# enables RDP for each build job so you can inspect the environment at the beginning of the job:
98# init:
99#  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
100#
101# enables RDP at the end of the build job so you can login and re-run
102# commands to see why something failed...
103# on_finish:
104#   - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
105#
106# also need:
107# environment:
108#   APPVEYOR_RDP_PASSWORD: thr1FT2345$xyzZ
109