blob: 0c5bfdfb3a56202541d69ff4b077f04d9b5c611d [file] [log] [blame]
Roger Meierdf71a2e2015-04-09 01:06:49 +02001# Licensed to the Apache Software Foundation (ASF) under one
2# or more contributor license agreements. See the NOTICE file
3# distributed with this work for additional information
4# regarding copyright ownership. The ASF licenses this file
5# to you under the Apache License, Version 2.0 (the
6# "License"); you may not use this file except in compliance
7# with the License. You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing,
12# software distributed under the License is distributed on an
13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14# KIND, either express or implied. See the License for the
15# specific language governing permissions and limitations
16# under the License.
17#
18
19# build Apache Thrift on AppVeyor - https://ci.appveyor.com
20
21version: '{build}'
22os:
23- Windows Server 2012 R2
24- Visual Studio 2014 CTP4
25- Visual Studio 2015 CTP
26- Visual Studio 2015 CTP 6
27- Visual Studio 2015 Preview
28
29environment:
30 BOOST_ROOT: c:\Libraries\boost
31 BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib
32
Roger Meier5d0a8062015-04-12 21:06:11 +020033install:
Roger Meierdf71a2e2015-04-09 01:06:49 +020034- cinst cmake
35- cinst nsis
36- cinst ant
37- cinst winflexbison
38
39build_script:
40- set PATH=C:\ProgramData\chocolatey\bin;C:\tools\apache-ant-1.9.4\bin;%PATH%
41- mv C:\ProgramData\chocolatey\bin\win_bison.exe C:\ProgramData\chocolatey\bin\bison.exe
42- mv C:\ProgramData\chocolatey\bin\win_flex.exe C:\ProgramData\chocolatey\bin\flex.exe
43- set JAVA_HOME=C:\Program Files\Java\jdk1.7.0
44- set PATH=%JAVA_HOME%\bin;%PATH%
45- mkdir cmake-build
46- cd cmake-build
47- cmake -DBUILD_TESTING=OFF ..
48- cmake --build .
49- cmake --build . --config Release
50- cpack
51
Roger Meier5d0a8062015-04-12 21:06:11 +020052#TODO enable testing
53#TODO make it perfect ;-r