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 | |
| 29 | # see what we need: http://thrift.apache.org/docs/install/ubuntu |
| 30 | before_install: |
henrique | 48b1897 | 2014-06-10 15:19:55 +0200 | [diff] [blame] | 31 | - sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted" -y |
henrique | a139c91 | 2014-04-02 14:45:39 +0200 | [diff] [blame] | 32 | - sudo apt-get update -qq |
henrique | ce79d59 | 2014-05-01 15:22:38 +0200 | [diff] [blame] | 33 | - sudo apt-get install -qq libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev bc |
henrique | 48b1897 | 2014-06-10 15:19:55 +0200 | [diff] [blame] | 34 | - dpkg -S /usr/include/boost/version.hpp |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 35 | # Java |
Roger Meier | 6635058 | 2014-01-15 09:51:48 +0100 | [diff] [blame] | 36 | - sudo apt-get install -qq ant |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 37 | # Ruby |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 38 | - gem install bundler -v 1.3.5 || true |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 39 | # Python |
Roger Meier | 169d655 | 2014-01-15 21:48:10 +0100 | [diff] [blame] | 40 | # - sudo apt-get install -qq python-all python-all-dev python-all-dbg |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 41 | # Perl |
Roger Meier | aae8acb | 2014-01-15 13:55:09 +0100 | [diff] [blame] | 42 | - sudo apt-get install -qq libbit-vector-perl libclass-accessor-class-perl |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 43 | # PHP |
henrique | a139c91 | 2014-04-02 14:45:39 +0200 | [diff] [blame] | 44 | - sudo apt-get install -qq php5-dev php5-cli phpunit php-pear |
Roger Meier | 6635058 | 2014-01-15 09:51:48 +0100 | [diff] [blame] | 45 | - sudo pear channel-discover pear.phpunit.de |
| 46 | - sudo pear channel-discover pear.symfony.com |
henrique | a139c91 | 2014-04-02 14:45:39 +0200 | [diff] [blame] | 47 | # - sudo pear channel-discover components.ez.no |
Roger Meier | 6635058 | 2014-01-15 09:51:48 +0100 | [diff] [blame] | 48 | - sudo pear update-channels |
| 49 | - sudo pear upgrade-all |
| 50 | - sudo pear install --alldeps phpunit/PHPUnit |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 51 | # c_glib |
| 52 | - sudo apt-get install -qq libglib2.0-dev |
| 53 | # Erlang |
Roger Meier | 169d655 | 2014-01-15 21:48:10 +0100 | [diff] [blame] | 54 | # - sudo apt-get install -qq erlang-base erlang-eunit erlang-dev |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 55 | # Csharp |
Henrique Mendonça | 0e07ec8 | 2013-06-08 09:40:21 +0200 | [diff] [blame] | 56 | - sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil nunit nunit-console |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 57 | # Haskell |
Roger Meier | 169d655 | 2014-01-15 21:48:10 +0100 | [diff] [blame] | 58 | # - sudo apt-get install -qq ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 59 | # Thrift Compiler for Windows |
henrique | 48b1897 | 2014-06-10 15:19:55 +0200 | [diff] [blame] | 60 | - sudo apt-get install -qq mingw32 |
Henrique | 08c34ea | 2013-05-11 19:29:19 +0200 | [diff] [blame] | 61 | # node.js |
| 62 | - sudo apt-get install -qq nodejs npm |
Henrique Mendonça | 0e07ec8 | 2013-06-08 09:40:21 +0200 | [diff] [blame] | 63 | - sudo npm install nodeunit -g || true |
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: |
| 66 | - sh bootstrap.sh |
| 67 | |
| 68 | script: |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 69 | # TODO: fix these languages |
henrique | ad4df16 | 2014-05-20 13:18:45 +0200 | [diff] [blame] | 70 | - sh configure --without-erlang --without-haskell --without-python --without-go --without-lua |
henrique | 55087a4 | 2014-06-17 12:36:39 +0200 | [diff] [blame] | 71 | - make -j4 && make dist |
| 72 | - make cross -j4 |
| 73 | - mkdir build_native && cd build_native && cmake ../compiler/cpp/ && make -j4; cd .. |
| 74 | - mkdir build_mingw32 && cd build_mingw32 && cmake -DCMAKE_TOOLCHAIN_FILE=../contrib/mingw32-toolchain.cmake ../compiler/cpp/ && make -j4; cd .. |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 75 | # TODO: add these steps |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 76 | # - sh bootstrap.sh ; dpkg-buildpackage -tc |