Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / .travis.yml @ 705bb26f

Historique | Voir | Annoter | Télécharger (1,22 ko)

1
---
2
os: linux
3
dist: xenial
4
language: ruby
5
cache: bundler
6
before_install:
7
  - bundle -v
8
  - rm -f Gemfile.lock
9
  - "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
10
  - "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
11
  - "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
12
  - '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
13
  - gem --version
14
  - bundle -v
15
script:
16
  - 'bundle exec rake $CHECK'
17
bundler_args: --without system_tests
18
rvm:
19
  - 2.5.7
20
stages:
21
  - static
22
  - spec
23
  - acceptance
24
  -
25
    if: tag =~ ^v\d
26
    name: deploy
27
jobs:
28
  fast_finish: true
29
  include:
30
    -
31
      env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
32
      stage: static
33
    -
34
      env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
35
      rvm: 2.4.5
36
      stage: spec
37
    -
38
      env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
39
      rvm: 2.5.7
40
      stage: spec
41
    -
42
      env: DEPLOY_TO_FORGE=yes
43
      stage: deploy
44
branches:
45
  only:
46
    - master
47
    - /^v\d/
48
notifications:
49
  email: false