blob: c494d79792892046b65e7486b5c04825522ef1ae [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
henriquea139c912014-04-02 14:45:39 +020022language: php
23
24cache:
25 - apt
26 - npm
Roger Meiera0836f62013-05-05 00:19:38 +020027
28# see what we need: http://thrift.apache.org/docs/install/ubuntu
29before_install:
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020030 - export NUM_CPU="`grep processor /proc/cpuinfo | wc -l`"; echo $NUM_CPU
henriquea139c912014-04-02 14:45:39 +020031 - sudo apt-get update -qq
Roger Meier169d6552014-01-15 21:48:10 +010032# - 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 +020033 - 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
34# Java
Roger Meier66350582014-01-15 09:51:48 +010035 - sudo apt-get install -qq ant
Roger Meiera0836f62013-05-05 00:19:38 +020036# Ruby
Roger Meier66350582014-01-15 09:51:48 +010037 - gem uninstall bundler -I -x
38 - gem install bundler -v 1.3.5
Roger Meiera0836f62013-05-05 00:19:38 +020039# Python
Roger Meier169d6552014-01-15 21:48:10 +010040# - sudo apt-get install -qq python-all python-all-dev python-all-dbg
Roger Meiera0836f62013-05-05 00:19:38 +020041# Perl
Roger Meieraae8acb2014-01-15 13:55:09 +010042 - sudo apt-get install -qq libbit-vector-perl libclass-accessor-class-perl
Roger Meiera0836f62013-05-05 00:19:38 +020043# PHP
henriquea139c912014-04-02 14:45:39 +020044 - sudo apt-get install -qq php5-dev php5-cli phpunit php-pear
Roger Meier66350582014-01-15 09:51:48 +010045 - sudo pear channel-discover pear.phpunit.de
46 - sudo pear channel-discover pear.symfony.com
henriquea139c912014-04-02 14:45:39 +020047# - sudo pear channel-discover components.ez.no
Roger Meier66350582014-01-15 09:51:48 +010048 - sudo pear update-channels
49 - sudo pear upgrade-all
50 - sudo pear install --alldeps phpunit/PHPUnit
Roger Meiera0836f62013-05-05 00:19:38 +020051# c_glib
52 - sudo apt-get install -qq libglib2.0-dev
53# Erlang
Roger Meier169d6552014-01-15 21:48:10 +010054# - sudo apt-get install -qq erlang-base erlang-eunit erlang-dev
Roger Meiera0836f62013-05-05 00:19:38 +020055# Csharp
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020056 - sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil nunit nunit-console
Roger Meiera0836f62013-05-05 00:19:38 +020057# Haskell
Roger Meier169d6552014-01-15 21:48:10 +010058# - sudo apt-get install -qq ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev
Roger Meiera0836f62013-05-05 00:19:38 +020059# Thrift Compiler for Windows
60 - sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime
Henrique08c34ea2013-05-11 19:29:19 +020061# node.js
62 - sudo apt-get install -qq nodejs npm
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020063 - sudo npm install nodeunit -g || true
64# TODO: move npm install to nodejs Makefile
65 - cd lib/nodejs; npm install & cd ../..
Roger Meiera0836f62013-05-05 00:19:38 +020066
Roger Meiera0836f62013-05-05 00:19:38 +020067install:
68 - sh bootstrap.sh
69
70script:
Roger Meiera0836f62013-05-05 00:19:38 +020071# TODO: fix these languages
Roger Meier78dbd5c2014-01-15 13:57:34 +010072 - sh configure --without-erlang --without-haskell --without-python
Henrique Mendonça0e07ec82013-06-08 09:40:21 +020073 - make -j$NUM_CPU && make dist
74 - make check -j$NUM_CPU && sh test/test.sh
Roger Meier66350582014-01-15 09:51:48 +010075 - sh bootstrap.sh ; sh contrib/mingw-cross-compile.sh
Roger Meiera0836f62013-05-05 00:19:38 +020076# TODO: add these steps
Roger Meiera0836f62013-05-05 00:19:38 +020077# - sh bootstrap.sh ; dpkg-buildpackage -tc