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 | |
| 22 | language: cpp |
| 23 | |
| 24 | # see what we need: http://thrift.apache.org/docs/install/ubuntu |
| 25 | before_install: |
| 26 | - sudo apt-get update -qq |
Roger Meier | 74c2cc8 | 2013-05-30 13:28:17 +0200 | [diff] [blame] | 27 | - sudo apt-get upgrade -qq |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 28 | - 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 |
| 29 | # Java |
| 30 | - sudo apt-get install -qq libcommons-lang3-java ant |
| 31 | # TODO: fix ruby support |
| 32 | # Ruby |
| 33 | # - sudo apt-get install -qq ruby1.9.1-full ruby1.9.1-dev ruby-rspec rake rubygems libdaemons-ruby libgemplugin-ruby mongrel |
| 34 | # - sudo /usr/bin/gem1.9.1 install bundler |
| 35 | # - sudo /usr/bin/gem1.9.1 install rack-test |
| 36 | # Python |
| 37 | - sudo apt-get install -qq python-all python-all-dev python-all-dbg |
| 38 | # Perl |
| 39 | - sudo apt-get install -qq libbit-vector-perl |
| 40 | # PHP |
| 41 | - sudo apt-get install -qq php5-dev php5-cli phpunit |
| 42 | # c_glib |
| 43 | - sudo apt-get install -qq libglib2.0-dev |
| 44 | # Erlang |
| 45 | - sudo apt-get install -qq erlang-base erlang-eunit erlang-dev |
| 46 | # Csharp |
| 47 | - sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil |
| 48 | # Haskell |
| 49 | - sudo apt-get install -qq ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev |
| 50 | # Thrift Compiler for Windows |
| 51 | - sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime |
Henrique | 08c34ea | 2013-05-11 19:29:19 +0200 | [diff] [blame] | 52 | # node.js |
| 53 | - sudo apt-get install -qq nodejs npm |
| 54 | - sudo npm install nodeunit -g |
| 55 | - cd lib/nodejs; npm install; cd ../.. |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 56 | |
| 57 | |
| 58 | install: |
| 59 | - sh bootstrap.sh |
| 60 | |
| 61 | script: |
| 62 | # TODO: fix ruby support |
| 63 | # - export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/var/lib/gems/1.9.1/bin |
| 64 | # - sh configure RUBY=/usr/bin/ruby1.9.1 RAKE=/usr/bin/rake1.9.1 |
| 65 | # TODO: fix these languages |
Roger Meier | dcfc7e6 | 2013-05-05 00:59:08 +0200 | [diff] [blame] | 66 | - sh configure --without-ruby --without-haskell --without-perl --without-php --without-python |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 67 | - make |
| 68 | - make dist |
| 69 | - make check |
Roger Meier | 1beeaaa | 2013-05-05 01:42:27 +0200 | [diff] [blame] | 70 | - sh test/test.sh |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 71 | # TODO: add these steps |
Roger Meier | a0836f6 | 2013-05-05 00:19:38 +0200 | [diff] [blame] | 72 | # - sh bootstrap.sh ; sh contrib/mingw-cross-compile.sh |
| 73 | # - sh bootstrap.sh ; dpkg-buildpackage -tc |