Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 1 | # |
| 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 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 22 | language: cpp |
henrique | a139c91 | 2014-04-02 14:45:39 +0200 | [diff] [blame] | 23 | |
| 24 | cache: |
| 25 | - apt |
| 26 | - npm |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 27 | - maven |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 28 | |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 29 | |
| 30 | |
| 31 | ## Build matrix: |
| 32 | env: |
| 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 | |
| 41 | matrix: |
| 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 Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 62 | before_install: |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 63 | - sh contrib/installDependencies.sh 1> /dev/null; |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 64 | |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 65 | install: |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 66 | - sh bootstrap.sh; |
| 67 | - sh configure $CONFIG; |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 68 | |
| 69 | script: |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 70 | - make -j4 && make dist; |
| 71 | - make cross -j4; |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 72 | # TODO: add these steps |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 73 | # - sh bootstrap.sh ; dpkg-buildpackage -tc |