-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (30 loc) · 1 KB
/
Rakefile
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
# frozen_string_literal: true
desc 'Check website'
task :check do
puts '--> bundle exec rubocop'
status = system('bundle exec rubocop')
puts status ? '--> OK' : 'FAILED'
puts
puts '--> bundle exec haml-lint -c .haml_lint.yml source/'
status = system('bundle exec haml-lint -c .haml_lint.yml source/')
puts status ? '--> OK' : 'FAILED'
puts
puts '--> bundle exec scss-lint source/'
status = system('bundle exec scss-lint source/')
puts status ? '--> OK' : 'FAILED'
puts
end
desc 'Build website'
task :build do
puts '--> Building website (bundle exec middleman build --clean --parallel)'
status = system('bundle exec middleman build --clean --parallel')
puts status ? '--> OK' : 'FAILED'
puts
end
desc 'Deploy website'
task :deploy do
puts '--> Deploying website (rsync -avzr --delete -e ssh build/ [email protected]:/opt/geophystech.ru)'
status = system('rsync -avzr --delete -e ssh build/ [email protected]:/opt/geophystech.ru')
puts status ? '--> OK' : 'FAILED'
puts
end