forked from biemond/biemond-orawls
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
executable file
·50 lines (38 loc) · 1.3 KB
/
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
#!/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-1.9.3
rvm use ruby-1.9.3
# rvm install ruby-2.0.0
# rvm use ruby-2.0.0
set -e
ruby -v
echo "gem version"
gem --version
gem install bundler --no-rdoc --no-ri
bundle install --without development
bundle --version
gem update --system 2.1.11
bundle exec rake syntax
bundle exec rake lint
bundle exec rake ci:setup:rspec spec
bundle exec rubocop
#bundle exec rake spec
#ruby syntax check
rubocop
# for windows
install ruby 1.9.3 for windows
install puppet 3.7.1 msi (https://downloads.puppetlabs.com/windows/)
gem install bundler --no-rdoc --no-ri
bundle install --without development
gem update --system 2.1.11
set PUPPET_VERSION=3.7.1
bundle update
SET PATH="C:\Program Files (x86)\Puppet Labs\Puppet\bin";"C:\Program Files (x86)\Puppet Labs\Puppet\facter\bin";"C:\Program Files (x86)\Puppet Labs\Puppet\hiera\bin";"C:\Program Files (x86)\Puppet Labs\Puppet\bin";"C:\Program Files (x86)\Puppet Labs\Puppet\sys\tools\bin";%PATH%
SET RUBYLIB="C:\Program Files (x86)\Puppet Labs\Puppet\lib";"C:\Program Files (x86)\Puppet Labs\Puppet\facter\lib";"C:\Program Files (x86)\Puppet Labs\Puppet\hiera\lib";%RUBYLIB%;
bundle exec rake syntax
bundle exec rake lint
bundle exec rake ci:setup:rspec spec