Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cool Fire
nanobot4
Commits
f26f9274
Commit
f26f9274
authored
Mar 08, 2017
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use syntax check script instead
parent
03ab9992
Pipeline
#249
canceled with stages
in 11 minutes and 3 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
.gitlab-ci.yml
.gitlab-ci.yml
+6
-6
scheck.rb
scheck.rb
+15
-0
No files found.
.gitlab-ci.yml
View file @
f26f9274
...
...
@@ -10,7 +10,7 @@ ruby_2.1:
-
ruby
script
:
-
ruby -v
-
find . -name "*\.rb" -print0 | xargs -I {} -0 -n1 sh -c "ls {}; ruby -c {}"
-
ruby scheck.rb
ruby_2.2
:
image
:
ruby:2.2
...
...
@@ -21,7 +21,7 @@ ruby_2.2:
-
master
script
:
-
ruby -v
-
find . -name "*\.rb" -print0 | xargs -I {} -0 -n1 sh -c "ls {}; ruby -c {}"
-
ruby scheck.rb
ruby_2.3
:
image
:
ruby:2.3
...
...
@@ -32,7 +32,7 @@ ruby_2.3:
-
master
script
:
-
ruby -v
-
find . -name "*\.rb" -print0 | xargs -I {} -0 -n1 sh -c "ls {}; ruby -c {}"
-
ruby scheck.rb
ruby_2.4
:
image
:
ruby:2.4
...
...
@@ -43,7 +43,7 @@ ruby_2.4:
-
master
script
:
-
ruby -v
-
find . -name "*\.rb" -print0 | xargs -I {} -0 -n1 sh -c "ls {}; ruby -c {}"
-
ruby scheck.rb
jruby_1.7
:
image
:
jruby:1.7
...
...
@@ -54,7 +54,7 @@ jruby_1.7:
-
master
script
:
-
ruby -v
-
find . -name "*\.rb" -print0 | xargs -I {} -0 -n1 sh -c "ls {};
ruby --dev
-c {}"
-
ruby --dev
scheck.rb
jruby_9.1
:
image
:
jruby:9.1
...
...
@@ -65,7 +65,7 @@ jruby_9.1:
-
master
script
:
-
ruby -v
-
find . -name "*\.rb" -print0 | xargs -I {} -0 -n1 sh -c "ls {};
ruby --dev
-c {}"
-
ruby --dev
scheck.rb
rubocop
:
stage
:
linting
...
...
scheck.rb
0 → 100644
View file @
f26f9274
#!/usr/bin/env ruby
ret
=
0
Dir
[
"**/*.rb"
].
each
do
|
f
|
res
=
%x(ruby -c
#{
f
}
)
if
res
.
empty?
ret
=
1
puts
"
#{
f
}
FAILED!"
else
puts
"
#{
f
.
ljust
(
30
)
}
#{
res
.
rjust
(
30
)
}
"
end
end
exit
ret
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment