forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
59 lines (51 loc) · 1.26 KB
/
.gitlab-ci.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
.lts_job: <s_job
image: registry.makandra.de/rails-lts/rails-lts-docker/test-env
services:
- name: registry.makandra.de/rails-lts/rails-lts-docker/pg:9.1
alias: pg-db
- name: registry.makandra.de/rails-lts/rails-lts-docker/mysql:5.6
alias: mysql-db
- name: registry.makandra.de/rails-lts/rails-lts-docker/memcached:1.5
alias: memcached
before_script:
- ruby -v
- bundle install
- bundle pristine
script:
- bundle exec rake railslts:test
variables: <s_job_variables
BUNDLE_PATH: ./bundle/vendor
MYSQL_HOST: mysql-db
MYSQL_USER: rails
PG_HOST: pg-db
PG_USER: rails
MEMCACHE_HOST: memcached
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- ./bundle/vendor
.ruby-1.8.7: &ruby_1_8_7
BUNDLE_GEMFILE: Gemfile.1.8
RBENV_VERSION: 1.8.7
.ruby-2.3: &ruby_2_3
BUNDLE_GEMFILE: Gemfile.2.3
RBENV_VERSION: 2.3.7
.ruby-2.5: &ruby_2_5
BUNDLE_GEMFILE: Gemfile.2.5
RBENV_VERSION: 2.5.1
# ============= Actual jobs ================
ruby-1.8.7:
<<: *lts_job
variables:
<<: *lts_job_variables
<<: *ruby_1_8_7
ruby-2.3:
<<: *lts_job
variables:
<<: *lts_job_variables
<<: *ruby_2_3
ruby-2.5:
<<: *lts_job
variables:
<<: *lts_job_variables
<<: *ruby_2_5