summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 2b04e6ba98ddb4c0d79fed303a1a1992936e4007 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
ruby2-1:
  image: "ruby:2.1"
  script:
    - bundle exec rake test
  artifacts:
    when: on_failure
    paths:
      - log/test.log
      - tmp/*.log
      - tmp/*.png

ruby2-3:
  image: "ruby:2.3"
  script:
    - bundle exec rake test
  artifacts:
    when: on_failure
    paths:
      - log/test.log

ruby2-4:
  image: "ruby:2.4"
  script:
    - bundle exec rake test
  artifacts:
    when: on_failure
    paths:
      - log/test.log

services:
  - couchdb:1.6.1

# Cache gems in between builds
cache:
  key: shared
  paths:
    - vendor/ruby

before_script:
  - ruby -v
  - curl -s couchdb:5984
  - cp config/ci/gitlab/couchdb.yml config/couchdb.admin.yml
  - cp config/ci/gitlab/couchdb.yml config
  - gem install bundler  --no-ri --no-rdoc
  - bundle install -j $(nproc) --path vendor --without development debug
  - bundle exec rake RAILS_ENV=test db:rotate
  - bundle exec rake RAILS_ENV=test db:migrate