Roger Meier | df71a2e | 2015-04-09 01:06:49 +0200 | [diff] [blame] | 1 | # 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 | |
| 21 | version: '{build}' |
| 22 | os: |
| 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 | |
| 29 | environment: |
| 30 | BOOST_ROOT: c:\Libraries\boost |
| 31 | BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib |
| 32 | |
Roger Meier | 5d0a806 | 2015-04-12 21:06:11 +0200 | [diff] [blame] | 33 | install: |
Roger Meier | df71a2e | 2015-04-09 01:06:49 +0200 | [diff] [blame] | 34 | - cinst cmake |
| 35 | - cinst nsis |
| 36 | - cinst ant |
| 37 | - cinst winflexbison |
| 38 | |
| 39 | build_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 Meier | 5d0a806 | 2015-04-12 21:06:11 +0200 | [diff] [blame] | 52 | #TODO enable testing |
| 53 | #TODO make it perfect ;-r |