blob: 13afbff6ad07c7086f38238b938b33bc9a0ca658 [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
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090021shallow_clone: true
22clone_depth: 10
23
Roger Meierdf71a2e2015-04-09 01:06:49 +020024version: '{build}'
25os:
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090026# - Windows Server 2012 R2
27- Visual Studio 2015
Roger Meierdf71a2e2015-04-09 01:06:49 +020028
29environment:
30 BOOST_ROOT: c:\Libraries\boost
31 BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib
32
Roger Meier5d0a8062015-04-12 21:06:11 +020033install:
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090034- '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64'
35 # Zlib
36- appveyor DownloadFile https://github.com/madler/zlib/archive/v1.2.8.tar.gz
37- 7z x v1.2.8.tar.gz -so | 7z x -si -ttar
38- cd zlib-1.2.8
39- cmake -G "Visual Studio 14 2015 Win64" .
40- cmake --build . --config release
41- cd ..
42 # OpenSSL
43- appveyor DownloadFile https://slproweb.com/download/Win64OpenSSL-1_0_2d.exe
44- ps: Start-Process Win64OpenSSL-1_0_2d.exe -ArgumentList "/silent /verysilent /sp- /suppressmsgboxes" -Wait
45 # Libevent
46- appveyor DownloadFile https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
47- 7z x libevent-2.0.22-stable.tar.gz -so | 7z x -si -ttar
48- cd libevent-2.0.22-stable
49- nmake -f Makefile.nmake
50- mkdir lib
51- move *.lib lib\
52- move WIN32-Code\event2\* include\event2\
53- move *.h include\
54- cd ..
Roger Meierdf71a2e2015-04-09 01:06:49 +020055- cinst winflexbison
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090056- cinst nsis
57# TODO: Enable Java build
58# - cinst ant -ignoreDependencies
59# TODO: Enable Haskell build
60# - cinst HaskellPlatform -version 2014.2.0.0
61
Roger Meierdf71a2e2015-04-09 01:06:49 +020062
63build_script:
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090064# - set PATH=C:\ProgramData\chocolatey\bin;C:\tools\apache-ant-1.9.4\bin;%PATH%
65# - set JAVA_HOME=C:\Program Files\Java\jdk1.7.0
66# - set PATH=%JAVA_HOME%\bin;%PATH%
67# - set PATH=%PATH%;C:\Program Files (x86)\Haskell Platform\2014.2.0.0\bin
68# - set PATH=%PATH%;C:\Program Files (x86)\Haskell Platform\2014.2.0.0\lib\extralibs\bin
69- set PATH=C:\Python27-x64;%PATH%
Roger Meierdf71a2e2015-04-09 01:06:49 +020070- mkdir cmake-build
71- cd cmake-build
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090072- cmake -G "Visual Studio 14 2015 Win64" -DWITH_JAVA=OFF -DWITH_SHARED_LIB=OFF -DLIBEVENT_ROOT=%APPVEYOR_BUILD_FOLDER%\libevent-2.0.22-stable -DZLIB_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.8 -DZLIB_LIBRARY=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.8\release\zlibstatic.lib -DBOOST_ROOT="%BOOST_ROOT% -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR% ..
73# - cmake --build .
Roger Meierdf71a2e2015-04-09 01:06:49 +020074- cmake --build . --config Release
Nobuaki Sukegawae8c71d82015-11-23 19:51:37 +090075# TODO: Fix cpack
76# - cpack
77- ctest -C Release -VV -E "(concurrency_test|processor_test|python_test$)"
Roger Meierdf71a2e2015-04-09 01:06:49 +020078
Roger Meier5d0a8062015-04-12 21:06:11 +020079#TODO make it perfect ;-r