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 | |
henrique | c0a7d72 | 2014-07-26 13:11:12 +0200 | [diff] [blame] | 36 | # C & C++ & Haskell (for some reason qt4 is required) |
| 37 | - CONFIG="--without-csharp --without-java --without-erlang --without-nodejs --without-lua --without-python --without-perl --without-php --without-php-extension --without-ruby --without-go --without-d" GHCVER=7.8.3 |
| 38 | |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 39 | # Build All |
| 40 | # TODO: fix these languages |
henrique | c0a7d72 | 2014-07-26 13:11:12 +0200 | [diff] [blame] | 41 | - CONFIG="--without-erlang --without-python --without-go --without-lua" GHCVER=7.8.3 |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 42 | |
henrique | c0a7d72 | 2014-07-26 13:11:12 +0200 | [diff] [blame] | 43 | |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 44 | matrix: |
| 45 | include: |
| 46 | - compiler: gcc |
| 47 | env: CONFIG="--disable-libs" |
| 48 | before_install: |
| 49 | - sh contrib/installCXXDependencies.sh; |
| 50 | script: |
| 51 | - make check -j4; |
| 52 | - mkdir build_native && cd build_native && cmake ../compiler/cpp/ && make -j4; cd ..; |
| 53 | - mkdir build_mingw32 && cd build_mingw32 && cmake -DCMAKE_TOOLCHAIN_FILE=../contrib/mingw32-toolchain.cmake ../compiler/cpp/ && make -j4; cd ..; |
| 54 | |
| 55 | - compiler: clang |
| 56 | env: CONFIG="--disable-libs" |
| 57 | before_install: |
| 58 | - sh contrib/installCXXDependencies.sh; |
| 59 | script: |
| 60 | - make check -j4; |
| 61 | |
| 62 | |
| 63 | |
| 64 | ## Default build sequence: |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 65 | before_install: |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 66 | - sh contrib/installDependencies.sh 1> /dev/null; |
henrique | c0a7d72 | 2014-07-26 13:11:12 +0200 | [diff] [blame] | 67 | - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH |
| 68 | - cabal update |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 69 | |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 70 | install: |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 71 | - sh bootstrap.sh; |
| 72 | - sh configure $CONFIG; |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 73 | |
| 74 | script: |
henrique | ac8d8e2 | 2014-07-23 23:31:04 +0200 | [diff] [blame] | 75 | - make -j4 && make dist; |
| 76 | - make cross -j4; |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 77 | # TODO: add these steps |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 78 | # - sh bootstrap.sh ; dpkg-buildpackage -tc |