-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.gitlab-ci.yml
71 lines (63 loc) · 1.09 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
60
61
62
63
64
65
66
67
68
69
70
71
variables:
#RETROSPEC_TEMPLATES_DIR: /root/.retrospec/repos/retrospec-puppet-templates
before_script:
- gem install bundler
- bundle install --without development build
- bundle exec ruby lib/retrospec/plugins/v1/plugin/templates/clone-hook
image: ruby:2.5
ruby2.3:
stage: test
tags:
- ruby
script:
- "bundle exec rake spec"
image: ruby:2.3
ruby2.4:
stage: test
tags:
- ruby
script:
- "bundle exec rake spec"
image: ruby:2.4
ruby2.5:
stage: test
tags:
- ruby
script:
- "bundle exec rake spec"
image: ruby:2.5
stages:
- validate
- test
- release
- deploy
rubocop_ruby:
stage: validate
allow_failure: true
only:
- branches
tags:
- ruby
script:
- bundle install
- bundle exec rubocop -D
bump_and_tag:
type: release
when: manual
tags:
- ruby
only:
- master@nwops/puppet-retrospec
script:
- gem install release_me
- bump_and_tag
production:
tags:
- ruby
before_script:
- gem install dpl
type: deploy
script:
- dpl --provider=rubygems --api-key=$RUBYGEMS_API_KEY
only:
- tags