forked from biemond/biemond-oradb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·52 lines (36 loc) · 997 Bytes
/
test.sh
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
#!/bin/bash
source ~/.profile
source ~/.rvm/scripts/rvm
rvm --version
# rvm install ruby-1.8.7
# rvm use ruby-1.8.7
# rvm install ruby-2.3.1
# rvm use ruby-2.3.1
rvm install ruby-2.3.6
rvm use ruby-2.3.6
set -e
ruby -v
echo "gem version"
gem --version
gem install bundler --no-rdoc --no-ri
bundle install --without development
bundle --version
bundle exec rake syntax
bundle exec rake lint
bundle exec rake ci:setup:rspec spec
#bundle exec rake spec
# Release the Puppet module, doing a clean, build, tag, push, bump_commit
rake module:clean
bundle exec puppet strings generate ./\*\*/*.pp ./lib/puppet/functions/**/*.rb
rake build
rake module:push
rake module:tag
rake module:bump_commit # Bump version and git commit
brew cask install puppetlabs/puppet/pdk
brew cask upgrade pdk
/opt/puppetlabs/pdk/bin/pdk convert
or
/opt/puppetlabs/pdk/bin/pdk update
/opt/puppetlabs/pdk/bin/pdk validate metadata,puppet
/opt/puppetlabs/pdk/bin/pdk test unit
/opt/puppetlabs/pdk/bin/pdk build