mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Run CI on wercker
This commit is contained in:
parent
640503a343
commit
f6d7ce3b0d
2 changed files with 36 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -2,7 +2,7 @@ require 'bundler/gem_tasks'
|
|||
|
||||
desc 'Run benchmarks'
|
||||
task :bench do
|
||||
system('TIME=20 bundle exec ruby benchmarks/benchmark.rb')
|
||||
system('bundle exec ruby benchmarks/benchmark.rb')
|
||||
end
|
||||
|
||||
desc 'Run RSpec code examples'
|
||||
|
|
35
wercker.yml
Normal file
35
wercker.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
box: wercker/rvm
|
||||
# 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:
|
||||
# Uncomment this to force RVM to use a specific Ruby version
|
||||
- rvm-use:
|
||||
version: 2.2.1
|
||||
|
||||
# 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: hamlit spec
|
||||
code: bundle exec rake spec
|
||||
|
||||
- script:
|
||||
name: rails integration spec
|
||||
code: bundle exec rake rails:spec
|
||||
|
||||
- script:
|
||||
name: run benchmarks
|
||||
code: bundle exec rake bench
|
Loading…
Add table
Reference in a new issue