grafana/wercker-box.yml

28 lines
704 B
YAML
Raw Normal View History

2015-03-03 10:47:26 -06:00
name: grafana-build-box
version: 2.0.0
inherits: wercker/golang
type: main
platform: ubuntu@12.04
packages:
- ruby@2.0.0-p594
keywords:
- ruby
script: |
export RUBYVERSION=2.0.0-p594
sudo apt-get update
sudo apt-get install git zlib1g-dev libreadline-dev libqtwebkit-dev
sudo apt-get remove ruby1.9.1
cd $HOME
mkdir rubyinstall
cd rubyinstall
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-$RUBYVERSION.tar.gz
tar xzvf ruby-$RUBYVERSION.tar.gz
cd ruby-$RUBYVERSION
./configure --with-readline-dir=/usr/include/readline --with-openssl-dir=/usr/include/openssl
make
make test
sudo make install
cd $HOME
rm -fr rubyinstall
echo "gem: --no-rdoc --no-ri" >> $HOME/.gemrc