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