forked from puppetlabs/rototiller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distelli-manifest.yml
39 lines (38 loc) · 1.46 KB
/
distelli-manifest.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
slv/rototiller:
PreBuild:
- echo "docker info:"
- docker info
- echo "logging into PCR..."
- docker login -u TOKEN --password $PCR_TOKEN pcr-internal.puppet.net
- echo "pulling container image"
- docker pull pcr-internal.puppet.net/slv/rototiller:latest
- echo "gem install rototiller"
- git submodule init
- git submodule update
# Check to see if rvm is already installed
- if [ -a ~/.rvm/scripts/rvm ]; then
- echo "rvm exists"
- rvm install 2.4.1
- else
- echo "rvm does not exist. Installing..."
- gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
- curl -sSL https://get.rvm.io | bash -s -- --version 2.4.1
- fi
- source ~/.rvm/scripts/rvm
- rvm use 2.4.1
- gem install bundler
- bundle install
Build:
- source ~/.rvm/scripts/rvm
- rvm use 2.4.1
# something in here (docker probably) is reading from stdin
# this prevents subsequent steps from running (acceptance doesn't run)
# so we need the </dev/null :facepalm:
- echo "bundle exec rake docs:verify" </dev/null
- bundle exec rake docs:verify </dev/null
- echo "bundle exec rake lint:rubocop" </dev/null
- bundle exec rake lint:rubocop </dev/null
- echo "bundle exec rake test:unit" </dev/null
- bundle exec rake test:unit </dev/null
- echo "bundle exec rake test:acceptance" </dev/null
- bundle exec rake test:acceptance </dev/null