puppet-nslcd/.travis.yml

46 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2015-04-23 14:32:48 -04:00
---
os: linux
dist: xenial
2018-08-22 06:07:49 -04:00
language: ruby
2015-11-23 20:00:31 -05:00
cache: bundler
2018-08-22 06:07:49 -04:00
before_install:
- bundle -v
- rm -f Gemfile.lock
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
- "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
2018-08-22 06:07:49 -04:00
- gem --version
- bundle -v
script:
- 'bundle exec rake $CHECK'
2015-04-23 14:32:48 -04:00
bundler_args: --without system_tests
2018-08-22 06:07:49 -04:00
rvm:
- 2.5.7
stages:
- static
- spec
- acceptance
-
if: tag =~ ^v\d
name: deploy
jobs:
2015-04-23 14:32:48 -04:00
fast_finish: true
include:
2018-08-22 06:07:49 -04:00
-
env: CHECK="validate lint check rubocop"
stage: static
2018-08-22 06:07:49 -04:00
-
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
rvm: 2.5.7
stage: spec
2018-08-22 06:07:49 -04:00
-
env: DEPLOY_TO_FORGE=yes
stage: deploy
2018-08-22 06:07:49 -04:00
branches:
only:
- main
2018-08-22 06:07:49 -04:00
- /^v\d/
notifications:
email: false