blob: 749b0146dace2a0b0ce7f66d948a0be80b8d02bd [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
Roger Meier66350582014-01-15 09:51:48 +010022language: ruby
23rvm:
24 - 1.9.3
Roger Meiera0836f62013-05-05 00:19:38 +020025
26# see what we need: http://thrift.apache.org/docs/install/ubuntu
27before_install:
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020028 - export NUM_CPU="`grep processor /proc/cpuinfo | wc -l`"; echo $NUM_CPU
Roger Meiera0836f62013-05-05 00:19:38 +020029 - sudo apt-get update -qq
Roger Meier2c7e89b2014-01-05 00:18:32 +010030 - 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 +020031 - 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
32# Java
Roger Meier66350582014-01-15 09:51:48 +010033 - sudo apt-get install -qq ant
Roger Meiera0836f62013-05-05 00:19:38 +020034# Ruby
Roger Meier66350582014-01-15 09:51:48 +010035 - gem uninstall bundler -I -x
36 - gem install bundler -v 1.3.5
Roger Meiera0836f62013-05-05 00:19:38 +020037# Python
38 - sudo apt-get install -qq python-all python-all-dev python-all-dbg
39# Perl
Roger Meieraae8acb2014-01-15 13:55:09 +010040 - sudo apt-get install -qq libbit-vector-perl libclass-accessor-class-perl
Roger Meiera0836f62013-05-05 00:19:38 +020041# PHP
42 - sudo apt-get install -qq php5-dev php5-cli phpunit
Roger Meier66350582014-01-15 09:51:48 +010043 - sudo apt-get upgrade pear
44 - sudo pear channel-discover pear.phpunit.de
45 - sudo pear channel-discover pear.symfony.com
46 - sudo pear channel-discover components.ez.no
47 - sudo pear update-channels
48 - sudo pear upgrade-all
49 - sudo pear install --alldeps phpunit/PHPUnit
Roger Meiera0836f62013-05-05 00:19:38 +020050# c_glib
51 - sudo apt-get install -qq libglib2.0-dev
52# Erlang
53 - sudo apt-get install -qq erlang-base erlang-eunit erlang-dev
54# Csharp
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020055 - sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil nunit nunit-console
Roger Meiera0836f62013-05-05 00:19:38 +020056# Haskell
57 - sudo apt-get install -qq ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev
58# Thrift Compiler for Windows
59 - sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime
Henrique08c34ea2013-05-11 19:29:19 +020060# node.js
61 - sudo apt-get install -qq nodejs npm
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020062 - sudo npm install nodeunit -g || true
63# TODO: move npm install to nodejs Makefile
64 - cd lib/nodejs; npm install & cd ../..
Roger Meiera0836f62013-05-05 00:19:38 +020065
Roger Meiera0836f62013-05-05 00:19:38 +020066install:
67 - sh bootstrap.sh
68
69script:
Roger Meiera0836f62013-05-05 00:19:38 +020070# TODO: fix these languages
Roger Meier78dbd5c2014-01-15 13:57:34 +010071 - sh configure --without-erlang --without-haskell --without-python
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020072 - make -j$NUM_CPU && make dist
73 - make check -j$NUM_CPU && sh test/test.sh
Roger Meier66350582014-01-15 09:51:48 +010074 - sh bootstrap.sh ; sh contrib/mingw-cross-compile.sh
Roger Meiera0836f62013-05-05 00:19:38 +020075# TODO: add these steps
Roger Meiera0836f62013-05-05 00:19:38 +020076# - sh bootstrap.sh ; dpkg-buildpackage -tc