-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
121 lines (116 loc) · 4.46 KB
/
shippable.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
language: ruby
#language: none
bundler_args: --without development system_tests
rvm:
# - 1.8.7
# - 1.9.3
# - 2.0
# - 2.1
- 2.2.0
- 2.3.1
- 2.3.2
env:
# - PUPPET_GEM_VERSION="~> 2.7.0"
# - PUPPET_GEM_VERSION="~> 3.2.0"
# - PUPPET_GEM_VERSION="~> 3.3.0"
# - PUPPET_GEM_VERSION="~> 3.4.0"
# - PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES=yes
# - PUPPET_GEM_VERSION="~> 3.6.0" STRICT_VARIABLES=yes
# - PUPPET_GEM_VERSION="~> 3.7.0" STRICT_VARIABLES=yes
- PUPPET_GEM_VERSION="~> 3.8.0" STRICT_VARIABLES=yes FUTURE_PARSER=yes
# - PUPPET_GEM_VERSION="~> 4"
matrix:
exclude:
# Ruby 1.9.3
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 2.7.0"
# Ruby 2.0.0
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 2.7.0"
# Ruby 2.1.0
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 2.7.0"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.2.0"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.3.0"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.4.0"
# Ruby 2.2.0
- rvm: 2.2.0
env: PUPPET_GEM_VERSION="~> 2.7.0"
- rvm: 2.2.0
env: PUPPET_GEM_VERSION="~> 3.2.0"
- rvm: 2.2.0
env: PUPPET_GEM_VERSION="~> 3.3.0"
- rvm: 2.2.0
env: PUPPET_GEM_VERSION="~> 3.4.0"
# Ruby 2.3.1
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 2.7.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.2.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.3.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.4.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES=yes
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.6.0" STRICT_VARIABLES=yes
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.7.0" STRICT_VARIABLES=yes
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 4"
# Ruby 2.3.2
- rvm: 2.3.2
env: PUPPET_GEM_VERSION="~> 2.7.0"
- rvm: 2.3.2
env: PUPPET_GEM_VERSION="~> 3.2.0"
- rvm: 2.3.2
env: PUPPET_GEM_VERSION="~> 3.3.0"
- rvm: 2.3.2
env: PUPPET_GEM_VERSION="~> 3.4.0"
- rvm: 2.3.2
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES=yes
- rvm: 2.3.2
env: PUPPET_GEM_VERSION="~> 3.6.0" STRICT_VARIABLES=yes
- rvm: 2.3.2
env: PUPPET_GEM_VERSION="~> 3.7.0" STRICT_VARIABLES=yes
build:
pre_ci_boot:
image_name: czhujer/shippable-c6ruby
image_tag: v0.4-2
pull: true
options: "-e HOME=/root"
#
ci:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- rm Gemfile.lock || true
- source /etc/profile.d/rvm.sh; rvm use $SHIPPABLE_RUBY
- source /etc/profile.d/rvm.sh; bundle install $SHIPPABLE_BUNDLER_ARGS
# - wget https://raw.githubusercontent.com/czhujer/docker-shippable-c6ruby/master/puppet-fix/syck_node_monkeypatch.rb -O /usr/local/rvm/gems/ruby-$SHIPPABLE_RUBY/gems/puppet-3.8.7/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb || true
# - PUPPET=`ls /usr/local/rvm/gems/ruby-$SHIPPABLE_RUBY/gems/puppet* -d|head -1 |awk '{split($0,a,"/"); print a[8]}' |tr '\n' ' ' |tr -d ' '`; wget https://raw.githubusercontent.com/czhujer/docker-shippable-c6ruby/master/puppet-fix/syck_node_monkeypatch.rb -O /usr/local/rvm/gems/ruby-$SHIPPABLE_RUBY/gems/$PUPPET/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb || true
- PUPPET=`ls /usr/local/rvm/gems/ruby-$SHIPPABLE_RUBY/gems/puppet* -d|head -1 |awk '{split($0,a,"/"); print a[8]}' |tr '\n' ' ' |tr -d ' '`; [[ $PUPPET =~ ^puppet-3\.[0-9]\. ]] && wget https://raw.githubusercontent.com/czhujer/docker-shippable-c6ruby/master/puppet-fix/syck_node_monkeypatch.rb -O /usr/local/rvm/gems/ruby-$SHIPPABLE_RUBY/gems/$PUPPET/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb || true
- rm -f /usr/bin/lsb_release
- source /etc/profile.d/rvm.sh; bundle exec rake test
- source /etc/profile.d/rvm.sh; bundle exec r10k puppetfile check -v
- source /etc/profile.d/rvm.sh; r10k puppetfile install -v
- mkdir /etc/puppet/modules/owncloudstack
- cp -ar ./* /etc/puppet/modules/owncloudstack
- source /etc/profile.d/rvm.sh; puppet module list
# fix for concat noop mode problem
# - source /etc/profile.d/rvm.sh; puppet apply tests/pre-init.pp
# fix for non-noop puppet mode
- yum clean all
# test real scenarios
# - source /etc/profile.d/rvm.sh; puppet apply tests/init.pp --test
- bash run_test.sh tests/init-oc9.pp
post_ci:
- ls -lh shippable/testresults
- ls -lh shippable/codecoverage
- source /etc/profile.d/rvm.sh; gem list
- source /etc/profile.d/rvm.sh; bundle exec rake test --tasks
- source /etc/profile.d/rvm.sh; puppet module list
- source /etc/profile.d/rvm.sh; facter