mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Change local CI test script name
because Rakefile execution locks Ruby version
This commit is contained in:
parent
c6aa5ac033
commit
c0190ef3ce
3 changed files with 9 additions and 9 deletions
6
Rakefile
6
Rakefile
|
@ -15,11 +15,6 @@ namespace :spec do
|
|||
task :update do
|
||||
system('cd spec && rake ugly')
|
||||
end
|
||||
|
||||
desc 'Check all specs'
|
||||
task :release do
|
||||
abort 'Spec failed!' unless system('./test.sh')
|
||||
end
|
||||
end
|
||||
|
||||
namespace :rails do
|
||||
|
@ -30,4 +25,3 @@ namespace :rails do
|
|||
end
|
||||
|
||||
task default: [:spec, 'rails:spec']
|
||||
task release: ['spec:release']
|
||||
|
|
6
release
Executable file
6
release
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
source ./test
|
||||
bundle exec rake release
|
|
@ -4,9 +4,9 @@ set -e
|
|||
trap 'rm .ruby-version' 0
|
||||
|
||||
VERSIONS=(
|
||||
2.2.2
|
||||
2.1.6
|
||||
2.0.0
|
||||
2.1.6
|
||||
2.2.2
|
||||
)
|
||||
|
||||
function test_with() {
|
||||
|
@ -20,6 +20,6 @@ for version in ${VERSIONS[@]}; do
|
|||
test_with $version
|
||||
done
|
||||
|
||||
rbenv local ${VERSIONS[0]}
|
||||
rbenv local ${VERSIONS[2]}
|
||||
ruby -v
|
||||
rake rails:spec
|
Loading…
Add table
Reference in a new issue