blob: b8b80ad4f96024c3f6b3fefd782ea21199c2f130 [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
29# see what we need: http://thrift.apache.org/docs/install/ubuntu
30before_install:
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020031 - export NUM_CPU="`grep processor /proc/cpuinfo | wc -l`"; echo $NUM_CPU
henriquea139c912014-04-02 14:45:39 +020032 - sudo apt-get update -qq
Roger Meier169d6552014-01-15 21:48:10 +010033# - sudo DEBIAN_FRONTEND=noninteractive apt-get -qq -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
Roger Meiera0836f62013-05-05 00:19:38 +020034 - 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
35# Java
Roger Meier66350582014-01-15 09:51:48 +010036 - sudo apt-get install -qq ant
Roger Meiera0836f62013-05-05 00:19:38 +020037# Ruby
henriqued17f1c92014-04-30 16:21:25 +020038# - gem uninstall bundler -I -x
39 - gem install bundler -v 1.3.5 || true
Roger Meiera0836f62013-05-05 00:19:38 +020040# Python
Roger Meier169d6552014-01-15 21:48:10 +010041# - sudo apt-get install -qq python-all python-all-dev python-all-dbg
Roger Meiera0836f62013-05-05 00:19:38 +020042# Perl
Roger Meieraae8acb2014-01-15 13:55:09 +010043 - sudo apt-get install -qq libbit-vector-perl libclass-accessor-class-perl
Roger Meiera0836f62013-05-05 00:19:38 +020044# PHP
henriquea139c912014-04-02 14:45:39 +020045 - sudo apt-get install -qq php5-dev php5-cli phpunit php-pear
Roger Meier66350582014-01-15 09:51:48 +010046 - sudo pear channel-discover pear.phpunit.de
47 - sudo pear channel-discover pear.symfony.com
henriquea139c912014-04-02 14:45:39 +020048# - sudo pear channel-discover components.ez.no
Roger Meier66350582014-01-15 09:51:48 +010049 - sudo pear update-channels
50 - sudo pear upgrade-all
51 - sudo pear install --alldeps phpunit/PHPUnit
Roger Meiera0836f62013-05-05 00:19:38 +020052# c_glib
53 - sudo apt-get install -qq libglib2.0-dev
54# Erlang
Roger Meier169d6552014-01-15 21:48:10 +010055# - sudo apt-get install -qq erlang-base erlang-eunit erlang-dev
Roger Meiera0836f62013-05-05 00:19:38 +020056# Csharp
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020057 - sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil nunit nunit-console
Roger Meiera0836f62013-05-05 00:19:38 +020058# Haskell
Roger Meier169d6552014-01-15 21:48:10 +010059# - sudo apt-get install -qq ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev
Roger Meiera0836f62013-05-05 00:19:38 +020060# Thrift Compiler for Windows
61 - sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime
Henrique08c34ea2013-05-11 19:29:19 +020062# node.js
63 - sudo apt-get install -qq nodejs npm
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020064 - sudo npm install nodeunit -g || true
65# TODO: move npm install to nodejs Makefile
66 - cd lib/nodejs; npm install & cd ../..
Roger Meiera0836f62013-05-05 00:19:38 +020067
Roger Meiera0836f62013-05-05 00:19:38 +020068install:
69 - sh bootstrap.sh
70
71script:
Roger Meiera0836f62013-05-05 00:19:38 +020072# TODO: fix these languages
Roger Meier78dbd5c2014-01-15 13:57:34 +010073 - sh configure --without-erlang --without-haskell --without-python
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020074 - make -j$NUM_CPU && make dist
henriqued17f1c92014-04-30 16:21:25 +020075 - make cross -j$NUM_CPU
Roger Meier66350582014-01-15 09:51:48 +010076 - sh bootstrap.sh ; sh contrib/mingw-cross-compile.sh
Roger Meiera0836f62013-05-05 00:19:38 +020077# TODO: add these steps
Roger Meiera0836f62013-05-05 00:19:38 +020078# - sh bootstrap.sh ; dpkg-buildpackage -tc