-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker-box.yml
76 lines (71 loc) · 1.96 KB
/
wercker-box.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name : nodejs-ruby-sass
version : 0.0.6
inherits : wercker/[email protected]
type : main
platform : [email protected]
packages :
keywords:
- ruby
- nodejs
- sass
- scss-lint
script: |
# Ruby
export RUBYVERSION=2.0.0-p353
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
# Bundler
sudo gem install bundler -v "1.3"
# Sass
sudo gem install sass -v "3.3.8"
# Scss-lint
sudo gem install scss-lint -v "0.24.1"
echo "RACK_ENV=test" | sudo tee -a /etc/environment
box-detect:
priority : 150
version :
detect:
- inFiles:
- Gemfile : ruby "2.0.0"
default-build:
ruby:
priority : 50
detect:
- default: true
text-to-append: |
# Build definition
build:
# The steps that will be executed on build
# See the Ruby section on the wercker devcenter:
# http://devcenter.wercker.com/articles/languages/ruby.html
steps:
# A step that executes `bundle install` command
- bundle-install
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo ruby information
code: |
echo "ruby version $(ruby --version) running"
echo "from location $(which ruby)"
echo -p "gem list: $(gem list)"
# Add more steps here:
#- script:
# name: rspec
# code: bundle exec rspec