Project

General

Profile

Download (1.47 KB) Statistics
| Branch: | Tag: | Revision:
language: ruby
addons:
apt:
packages:
- asciidoc
- libxml2-utils
- xsltproc
- docbook-xsl
- ca-certificates
rvm: 2.5
script:
- bundle exec rake rubocop
#
# Run rspec tests on migrations
#
- bundle exec rake spec
#
# Test basic installer configuration works
#
- INSTDIR=$(mktemp -d)
- bundle exec rake build install PREFIX=$INSTDIR
- bundle exec $INSTDIR/sbin/foreman-installer --help --scenario foreman
- cat $INSTDIR/var/log/foreman-installer/foreman.log
- bundle exec $INSTDIR/sbin/foreman-installer --help --scenario foreman-proxy-content
- cat $INSTDIR/var/log/foreman-installer/foreman-proxy-content.log
- bundle exec $INSTDIR/sbin/foreman-installer --help --scenario katello
- cat $INSTDIR/var/log/foreman-installer/katello.log
- bundle exec $INSTDIR/sbin/foreman-proxy-certs-generate --help
- bundle exec $INSTDIR/sbin/foreman-proxy-certs-generate --help |grep -q certs-update-server
#
# Run rspec tests again for Puppet version support in modules.
# This requires all modules to be built.
#
- bundle exec rake spec
#
# Test separate build/installation steps with different prefixes
# No references to INSTDIR should be present when built with PREFIX=/
#
- bundle exec rake clean build PREFIX=/ SYSCONFDIR=/etc
- INSTDIR=$(mktemp -d)
- bundle exec rake install PREFIX=$INSTDIR
- "! find $INSTDIR -type f | xargs grep $INSTDIR"
- "! find $INSTDIR -type l -printf '%P: ' -exec readlink {} \\; | grep $INSTDIR"
(3-3/11)