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 | a139c91 | 2014-04-02 14:45:39 +0200 | [diff] [blame] | 22 | language: php |
| 23 | |
| 24 | cache: |
| 25 | - apt |
| 26 | - npm |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 27 | |
| 28 | # see what we need: http://thrift.apache.org/docs/install/ubuntu |
| 29 | before_install: |
Henrique Mendonça | 0e07ec8 | 2013-06-08 09:40:21 +0200 | [diff] [blame] | 30 | - export NUM_CPU="`grep processor /proc/cpuinfo | wc -l`"; echo $NUM_CPU |
henrique | a139c91 | 2014-04-02 14:45:39 +0200 | [diff] [blame] | 31 | - sudo apt-get update -qq |
Roger Meier | 169d655 | 2014-01-15 21:48:10 +0100 | [diff] [blame] | 32 | # - sudo DEBIAN_FRONTEND=noninteractive apt-get -qq -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade |
Roger Meier | a0836f6 | 2013-05-05 00:19: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 |
| 34 | # Java |
Roger Meier | 6635058 | 2014-01-15 09:51:48 +0100 | [diff] [blame] | 35 | - sudo apt-get install -qq ant |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 36 | # Ruby |
Roger Meier | 6635058 | 2014-01-15 09:51:48 +0100 | [diff] [blame] | 37 | - gem uninstall bundler -I -x |
| 38 | - gem install bundler -v 1.3.5 |
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 |
| 60 | - sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime |
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 |
| 64 | # TODO: move npm install to nodejs Makefile |
| 65 | - cd lib/nodejs; npm install & cd ../.. |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 66 | |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 67 | install: |
| 68 | - sh bootstrap.sh |
| 69 | |
| 70 | script: |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 71 | # TODO: fix these languages |
Roger Meier | 78dbd5c | 2014-01-15 13:57:34 +0100 | [diff] [blame] | 72 | - sh configure --without-erlang --without-haskell --without-python |
Henrique Mendonça | 0e07ec8 | 2013-06-08 09:40:21 +0200 | [diff] [blame] | 73 | - make -j$NUM_CPU && make dist |
| 74 | - make check -j$NUM_CPU && sh test/test.sh |
Roger Meier | 6635058 | 2014-01-15 09:51:48 +0100 | [diff] [blame] | 75 | - sh bootstrap.sh ; sh contrib/mingw-cross-compile.sh |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 76 | # TODO: add these steps |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 77 | # - sh bootstrap.sh ; dpkg-buildpackage -tc |