blob: 4c0144cdcad6d007a2bb381abb33ed5951ef663e [file] [log] [blame]
James E. King, III07f59972017-03-10 06:18:33 -05001#
Roger Meierdf71a2e2015-04-09 01:06:49 +02002# 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
James E. King IIIc3375d92018-12-30 11:06:00 -050022version: '1.0.0.{build}'
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090023
James E. King, III07f59972017-03-10 06:18:33 -050024shallow_clone: true
25
James E. King III278528c2019-01-11 12:17:44 -050026branches:
27 only:
28 - master
29 - /^(release/)?\d+\.\d+\.\d+$/
30
Roger Meierdf71a2e2015-04-09 01:06:49 +020031os:
James E. King III860a5f12018-03-06 14:23:23 -050032 - Visual Studio 2017
James E. King, III07f59972017-03-10 06:18:33 -050033
James E. King III860a5f12018-03-06 14:23:23 -050034matrix:
35 allow_failures:
36 - PROFILE: CYGWIN
37 fast_finish: true
James E. King, III07f59972017-03-10 06:18:33 -050038
Roger Meierdf71a2e2015-04-09 01:06:49 +020039environment:
James E. King, III07f59972017-03-10 06:18:33 -050040 matrix:
James E. King III860a5f12018-03-06 14:23:23 -050041 - PROFILE: MSVC2017
James E. King, III33df4eb2017-04-06 08:45:17 -040042 PLATFORM: x64
43 CONFIGURATION: Release
James E. King III278528c2019-01-11 12:17:44 -050044 BUILD_SHARED_LIBS: OFF
James E. King IIIc9ac8d22019-01-07 16:46:45 -050045 BOOST_VERSION: 1.67.0
James E. King III860a5f12018-03-06 14:23:23 -050046 LIBEVENT_VERSION: 2.1.8
James E. King, III07f59972017-03-10 06:18:33 -050047 PYTHON_VERSION: 3.6
James E. King III860a5f12018-03-06 14:23:23 -050048 QT_VERSION: 5.10
James E. King, III07f59972017-03-10 06:18:33 -050049 ZLIB_VERSION: 1.2.11
James E. King, III33df4eb2017-04-06 08:45:17 -040050 DISABLED_TESTS: StressTestNonBlocking
James E. King, III07f59972017-03-10 06:18:33 -050051
James E. King IIIc9ac8d22019-01-07 16:46:45 -050052 - PROFILE: MSVC2015
James E. King III8d55c472018-03-12 14:29:55 -040053 PLATFORM: x86
54 CONFIGURATION: Release
James E. King III278528c2019-01-11 12:17:44 -050055 BUILD_SHARED_LIBS: OFF
James E. King IIIc9ac8d22019-01-07 16:46:45 -050056 BOOST_VERSION: 1.62.0
James E. King III8d55c472018-03-12 14:29:55 -040057 LIBEVENT_VERSION: 2.0.22
58 PYTHON_VERSION: 3.5
59 QT_VERSION: 5.8
60 ZLIB_VERSION: 1.2.8
61 DISABLED_TESTS: StressTestNonBlocking
62 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
63
James E. King, III07f59972017-03-10 06:18:33 -050064 - PROFILE: MINGW
James E. King, III33df4eb2017-04-06 08:45:17 -040065 PLATFORM: x64
James E. King III860a5f12018-03-06 14:23:23 -050066 CONFIGURATION: RelWithDebInfo
67 DISABLED_TESTS: StressTestNonBlocking
James E. King, III07f59972017-03-10 06:18:33 -050068
James E. King III860a5f12018-03-06 14:23:23 -050069 - PROFILE: CYGWIN
James E. King III860a5f12018-03-06 14:23:23 -050070 PLATFORM: x86
71 CONFIGURATION: RelWithDebInfo
72 DISABLED_TESTS: (ZlibTest|OpenSSLManualInitTest|TNonblockingServerTest|StressTestNonBlocking)
Roger Meierdf71a2e2015-04-09 01:06:49 +020073
James E. King III8d55c472018-03-12 14:29:55 -040074# - PROFILE: CYGWIN
75# PLATFORM: x64
76# CONFIGURATION: RelWithDebInfo
77# DISABLED_TESTS: (ZlibTest|OpenSSLManualInitTest|TNonblockingServerTest|StressTestNonBlocking)
78
Roger Meier5d0a8062015-04-12 21:06:11 +020079install:
James E. King, III07f59972017-03-10 06:18:33 -050080 - cd %APPVEYOR_BUILD_FOLDER%
81 - call build\appveyor\%PROFILE:~0,4%-appveyor-install.bat
82 - refreshenv
Roger Meierdf71a2e2015-04-09 01:06:49 +020083
84build_script:
James E. King, III07f59972017-03-10 06:18:33 -050085 - cd %APPVEYOR_BUILD_FOLDER%
86 - call build\appveyor\%PROFILE:~0,4%-appveyor-build.bat
87
88test_script:
89 - cd %APPVEYOR_BUILD_FOLDER%
90 - call build\appveyor\%PROFILE:~0,4%-appveyor-test.bat
91
James E. King, III33df4eb2017-04-06 08:45:17 -040092
James E. King, III07f59972017-03-10 06:18:33 -050093# artifact capture disabled as it might increase service cost for little gain:
94#
95# artifacts:
96# - path: local-thrift-inst
97# name: cmake installed content
98# type: zip
99#
100# - path: local-thrift-build\Testing
101# name: ctest output
102# type: zip
James E. King, III33df4eb2017-04-06 08:45:17 -0400103
104# RDP support: use one or the other...
105#
106# enables RDP for each build job so you can inspect the environment at the beginning of the job:
107# init:
108# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
109#
110# enables RDP at the end of the build job so you can login and re-run
111# commands to see why something failed...
James E. King IIIc9ac8d22019-01-07 16:46:45 -0500112# on_finish:
113# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
James E. King, III82ae9572017-08-05 12:23:54 -0400114#
115# also need:
116# environment:
jfarrell384647d2018-10-16 22:36:46 -0400117# APPVEYOR_RDP_PASSWORD: thr1FT2345$xyzZ