.gitlab-ci.yml 1010 Bytes
Newer Older
Cool Fire's avatar
Cool Fire committed
1 2
---
stages:
3
  - syntax
Cool Fire's avatar
Cool Fire committed
4 5
  - linting

Cool Fire's avatar
Cool Fire committed
6
ruby_2.1:
Cool Fire's avatar
Cool Fire committed
7
  image: ruby:2.1
8
  stage: syntax
Cool Fire's avatar
Cool Fire committed
9 10
  tags:
    - ruby
Cool Fire's avatar
Cool Fire committed
11
  script:
12
    - ruby -v
Cool Fire's avatar
Cool Fire committed
13
    - ruby scheck.rb
Cool Fire's avatar
Cool Fire committed
14

Cool Fire's avatar
Cool Fire committed
15
ruby_2.2:
Cool Fire's avatar
Cool Fire committed
16
  image: ruby:2.2
17
  stage: syntax
Cool Fire's avatar
Cool Fire committed
18 19
  tags:
    - ruby
20 21
  only:
    - master
Cool Fire's avatar
Cool Fire committed
22
  script:
23
    - ruby -v
Cool Fire's avatar
Cool Fire committed
24
    - ruby scheck.rb
Cool Fire's avatar
Cool Fire committed
25

Cool Fire's avatar
Cool Fire committed
26
ruby_2.3:
Cool Fire's avatar
Cool Fire committed
27
  image: ruby:2.3
28
  stage: syntax
Cool Fire's avatar
Cool Fire committed
29 30
  tags:
    - ruby
31 32
  only:
    - master
Cool Fire's avatar
Cool Fire committed
33
  script:
34
    - ruby -v
Cool Fire's avatar
Cool Fire committed
35
    - ruby scheck.rb
Cool Fire's avatar
Cool Fire committed
36

Cool Fire's avatar
Cool Fire committed
37
ruby_2.4:
Cool Fire's avatar
Cool Fire committed
38
  image: ruby:2.4
39
  stage: syntax
Cool Fire's avatar
Cool Fire committed
40 41
  tags:
    - ruby
42 43
  only:
    - master
Cool Fire's avatar
Cool Fire committed
44
  script:
45
    - ruby -v
Cool Fire's avatar
Cool Fire committed
46
    - ruby scheck.rb
Cool Fire's avatar
Cool Fire committed
47

Cool Fire's avatar
Cool Fire committed
48 49
jruby_1.7:
  image: jruby:1.7
50
  stage: syntax
Cool Fire's avatar
Cool Fire committed
51 52
  tags:
    - ruby
53 54
  only:
    - master
Cool Fire's avatar
Cool Fire committed
55 56
  script:
    - ruby -v
57
    - ruby scheck.rb --jruby
Cool Fire's avatar
Cool Fire committed
58

Cool Fire's avatar
Cool Fire committed
59
jruby_9.1:
Cool Fire's avatar
Cool Fire committed
60
  image: jruby:9.1
61
  stage: syntax
Cool Fire's avatar
Cool Fire committed
62 63
  tags:
    - ruby
64 65
  only:
    - master
Cool Fire's avatar
Cool Fire committed
66 67
  script:
    - ruby -v
68
    - ruby scheck.rb --jruby
Cool Fire's avatar
Cool Fire committed
69

Cool Fire's avatar
Cool Fire committed
70 71 72 73 74 75
rubocop:
  stage: linting
  tags:
    - ruby
  script:
    - gem install rubocop --no-ri --no-rdoc
Cool Fire's avatar
Cool Fire committed
76
    - rubocop -l -f simple --except RescueException,Eval,AssignmentInCondition,ScriptPermission