You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.travis.yml 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ---
  2. dist: xenial
  3. language: ruby
  4. cache: bundler
  5. before_install:
  6. - bundle -v
  7. - rm -f Gemfile.lock
  8. - gem update --system $RUBYGEMS_VERSION
  9. - gem --version
  10. - bundle -v
  11. script:
  12. - 'bundle exec rake $CHECK'
  13. bundler_args: --without system_tests
  14. rvm:
  15. - 2.5.3
  16. stages:
  17. - static
  18. - spec
  19. - acceptance
  20. -
  21. if: tag =~ ^v\d
  22. name: deploy
  23. matrix:
  24. fast_finish: true
  25. include:
  26. -
  27. env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
  28. stage: static
  29. -
  30. env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
  31. rvm: 2.4.5
  32. stage: spec
  33. -
  34. env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
  35. rvm: 2.5.3
  36. stage: spec
  37. -
  38. env: DEPLOY_TO_FORGE=yes
  39. stage: deploy
  40. branches:
  41. only:
  42. - master
  43. - /^v\d/
  44. notifications:
  45. email: false
  46. deploy:
  47. provider: puppetforge
  48. user: puppet
  49. password:
  50. secure: ""
  51. on:
  52. tags: true
  53. all_branches: true
  54. condition: "$DEPLOY_TO_FORGE = yes"