-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
98 lines (86 loc) · 2.42 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.test-commands: &test-commands
script:
- bundle install --path vendor/bundle --without development
- bundle exec rake test
before_script:
- gem update --system
# Install ssh-agent if not already installed, it is required by Docker.
# (change apt-get to yum if you use a CentOS-based image)
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# Run ssh-agent (inside the build environment)
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
# For Docker builds disable host key checking. Be aware that by adding that
# you are suspectible to man-in-the-middle attacks.
# WARNING: Use this only with the Docker executor, if you use it with shell
# you will overwrite your user's SSH config.
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
coverage: '/^Resource\scoverage\s*:\s*([^%]+)/'
# Ruby 1.9.3
test:ruby193-puppet-370:
<<: *test-commands
image: ruby:1.9.3-wheezy
variables:
PUPPET_VERSION: "~> 3.7.0"
test:ruby193-puppet-380:
<<: *test-commands
image: ruby:1.9.3-wheezy
variables:
PUPPET_VERSION: "~> 3.8.0"
FUTURE_PARSER: "yes"
test:ruby193-puppet-460:
<<: *test-commands
image: ruby:1.9.3-wheezy
variables:
PUPPET_VERSION: "~> 4.6.0"
test:ruby193-puppet-470:
<<: *test-commands
image: ruby:1.9.3-wheezy
variables:
PUPPET_VERSION: "~> 4.7.0"
# Ruby 2.0
test:ruby20-puppet-370:
<<: *test-commands
image: ruby:2.0
variables:
PUPPET_VERSION: "~> 3.7.0"
test:ruby20-puppet-380:
<<: *test-commands
image: ruby:2.0
variables:
PUPPET_VERSION: "~> 3.8.0"
FUTURE_PARSER: "yes"
test:ruby20-puppet-460:
<<: *test-commands
image: ruby:2.0
variables:
PUPPET_VERSION: "~> 4.6.0"
test:ruby20-puppet-470:
<<: *test-commands
image: ruby:2.0
variables:
PUPPET_VERSION: "~> 4.7.0"
# Ruby 2.1
test:ruby21-puppet-370:
<<: *test-commands
image: ruby:2.1
variables:
PUPPET_VERSION: "~> 3.7.0"
test:ruby21-puppet-380:
<<: *test-commands
image: ruby:2.1
variables:
PUPPET_VERSION: "~> 3.8.0"
FUTURE_PARSER: "yes"
test:ruby21-puppet-460:
<<: *test-commands
image: ruby:2.1
variables:
PUPPET_VERSION: "~> 4.6.0"
test:ruby21-puppet-470:
<<: *test-commands
image: ruby:2.1
variables:
PUPPET_VERSION: "~> 4.7.0"