blob: 017ac74ef750ddd2f35b612a79046db816a004d5 [file] [log] [blame]
Roger Meiera0836f62013-05-05 00:19:38 +02001#
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 Travis CI - https://travis-ci.org/
21
henriqued17f1c92014-04-30 16:21:25 +020022language: cpp
henriquea139c912014-04-02 14:45:39 +020023
24cache:
25 - apt
26 - npm
henriqued17f1c92014-04-30 16:21:25 +020027 - maven
Roger Meiera0836f62013-05-05 00:19:38 +020028
henriqueac8d8e22014-07-23 23:31:04 +020029
30
31## Build matrix:
32env:
33 # Small Set
34 - CONFIG="--without-erlang --without-haskell --without-python --without-go --without-lua --without-d --without-ruby --without-nodejs --without-java"
35
36 # Build All
37 # TODO: fix these languages
38 - CONFIG="--without-erlang --without-haskell --without-python --without-go --without-lua"
39
40
41matrix:
42 include:
43 - compiler: gcc
44 env: CONFIG="--disable-libs"
45 before_install:
46 - sh contrib/installCXXDependencies.sh;
47 script:
48 - make check -j4;
49 - mkdir build_native && cd build_native && cmake ../compiler/cpp/ && make -j4; cd ..;
50 - mkdir build_mingw32 && cd build_mingw32 && cmake -DCMAKE_TOOLCHAIN_FILE=../contrib/mingw32-toolchain.cmake ../compiler/cpp/ && make -j4; cd ..;
51
52 - compiler: clang
53 env: CONFIG="--disable-libs"
54 before_install:
55 - sh contrib/installCXXDependencies.sh;
56 script:
57 - make check -j4;
58
59
60
61## Default build sequence:
Roger Meiera0836f62013-05-05 00:19:38 +020062before_install:
henriqueac8d8e22014-07-23 23:31:04 +020063 - sh contrib/installDependencies.sh 1> /dev/null;
Roger Meiera0836f62013-05-05 00:19:38 +020064
Roger Meiera0836f62013-05-05 00:19:38 +020065install:
henriqueac8d8e22014-07-23 23:31:04 +020066 - sh bootstrap.sh;
67 - sh configure $CONFIG;
Roger Meiera0836f62013-05-05 00:19:38 +020068
69script:
henriqueac8d8e22014-07-23 23:31:04 +020070 - make -j4 && make dist;
71 - make cross -j4;
Roger Meiera0836f62013-05-05 00:19:38 +020072# TODO: add these steps
Roger Meiera0836f62013-05-05 00:19:38 +020073# - sh bootstrap.sh ; dpkg-buildpackage -tc