mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
28 lines
704 B
YAML
28 lines
704 B
YAML
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
|