Skip to content

Commit

Permalink
compile thrift on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Nov 11, 2019
1 parent 9ef2044 commit 6e7a45b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ cache:
directories:
- node_modules

sudo: required

install:
# Ruby gems installation
- bundle install --jobs=3 --retry=3 --deployment
Expand Down Expand Up @@ -45,6 +47,20 @@ install:
- python --version
- pip list

# Apache Thrift
# Thrift
- export THRIFT_VERSION=0.11.0
- export buildDeps="automake bison curl flex g++ libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libevent-dev libssl-dev libtool make pkg-config"
- sudo apt-get install -y --no-install-recommends $buildDeps && sudo rm -rf /var/lib/apt/lists/*
- sudo curl -sSL "http://apache.mirrors.spacedump.net/thrift/$THRIFT_VERSION/thrift-$THRIFT_VERSION.tar.gz" -o $HOME/thrift.tar.gz
- mkdir -p $HOME/thrift
- tar zxf $HOME/thrift.tar.gz -C $HOME/thrift --strip-components=1
- pushd $HOME/thrift
- ./configure --without-python --without-cpp --without-ruby --without-nodejs --without-py3 --without-go --without-php
- make
- sudo make install
- popd

before_script:
- cp config/configuration.yml.example config/configuration.yml
- cp config/database.yml.example config/database.yml
Expand All @@ -53,4 +69,4 @@ before_script:
- bundle exec rake db:test:prepare
- RAILS_ENV=test bundle exec rake webpacker:compile
script:
- WHATSOPT_COVERALLS=1 bundle exec rake test
- WHATSOPT_COVERALLS=1 bundle exec rake test

0 comments on commit 6e7a45b

Please sign in to comment.