.gitlab-ci.yml 741 Bytes
Newer Older
KitaitiMakoto's avatar
KitaitiMakoto committed
1 2 3
before_script:
  - ruby -v
  - which ruby
KitaitiMakoto's avatar
KitaitiMakoto committed
4 5
  - apt -qq update -y
  - apt -qq install -y default-jre
KitaitiMakoto's avatar
KitaitiMakoto committed
6
  - gem install bundler --no-document
KitaitiMakoto's avatar
KitaitiMakoto committed
7
  - bundle install --jobs=$(nproc) --path=deps --quiet
8
  - bundle clean
KitaitiMakoto's avatar
KitaitiMakoto committed
9 10 11 12

test:2.3:
  image: ruby:2.3
  script: bundle exec rake test
13 14 15 16 17 18
  except:
    - tags
  cache:
    key: ruby:2.3
    paths:
      - deps
KitaitiMakoto's avatar
KitaitiMakoto committed
19 20 21 22

test:2.4:
  image: ruby:2.4
  script: bundle exec rake test
23 24 25 26 27 28
  except:
    - tags
  cache:
    key: ruby:2.4
    paths:
      - deps
29 30

test:2.5:
31
  image: ruby:2.5
32
  script: bundle exec rake test
33 34 35 36 37 38
  except:
    - tags
  cache:
    key: ruby:2.5
    paths:
      - deps
39 40

test:2.6:
KitaitiMakoto's avatar
KitaitiMakoto committed
41
  image: ruby:2.6
42 43 44 45 46 47 48
  script: bundle exec rake test
  except:
    - tags
  cache:
    key: ruby:2.6
    paths:
      - deps