.travis.yml 3.55 KB
Newer Older
1
---
Raphaël Pinson's avatar
Raphaël Pinson committed
2
dist: xenial
3
language: ruby
Raphaël Pinson's avatar
Raphaël Pinson committed
4
cache: bundler
Mickaël Canévet's avatar
Mickaël Canévet committed
5 6
addons:
  apt:
Raphaël Pinson's avatar
Raphaël Pinson committed
7 8
    sources:
      - augeas
Raphaël Pinson's avatar
Raphaël Pinson committed
9 10 11 12 13 14 15 16 17 18
    packages:
      - libaugeas-dev
before_install:
  - bundle -v
  - rm -f Gemfile.lock
  - gem update --system $RUBYGEMS_VERSION
  - gem --version
  - bundle -v
script:
  - 'bundle exec rake $CHECK'
Mickaël Canévet's avatar
Mickaël Canévet committed
19
bundler_args: --without system_tests
Raphaël Pinson's avatar
Raphaël Pinson committed
20 21 22 23 24 25 26
rvm:
  - 2.5.3
stages:
  - static
  - spec
  - acceptance
  -
Raphaël Pinson's avatar
Raphaël Pinson committed
27
    if: tag =~ ^\d
Raphaël Pinson's avatar
Raphaël Pinson committed
28
    name: deploy
29
matrix:
30
  fast_finish: true
31
  include:
Raphaël Pinson's avatar
Raphaël Pinson committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    -
      env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
      stage: static
    -
      env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
      rvm: 2.4.5
      stage: spec
    -
      env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
      rvm: 2.5.3
      stage: spec
    -
      bundler_args: 
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=debian8-64{hypervisor=docker}"]
      rvm: default
      script: bundle exec rspec spec/acceptance/*_spec.rb
48
      services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
49 50 51
      stage: acceptance
      sudo: required
    -
52
      bundler_args: 
Raphaël Pinson's avatar
Raphaël Pinson committed
53 54
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=debian9-64{hypervisor=docker}"]
      rvm: default
Raphaël Pinson's avatar
Raphaël Pinson committed
55
      script: bundle exec rspec spec/acceptance/*_spec.rb
Raphaël Pinson's avatar
Raphaël Pinson committed
56 57
      services: docker
      stage: acceptance
58
      sudo: required
Raphaël Pinson's avatar
Raphaël Pinson committed
59 60 61 62 63
    -
      bundler_args: 
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=ubuntu1404-64{hypervisor=docker}"]
      rvm: default
      script: bundle exec rspec spec/acceptance/*_spec.rb
64
      services: docker
Raphaël Pinson's avatar
Raphaël Pinson committed
65 66 67
      stage: acceptance
      sudo: required
    -
68
      bundler_args: 
Raphaël Pinson's avatar
Raphaël Pinson committed
69 70
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=ubuntu1604-64{hypervisor=docker}"]
      rvm: default
Raphaël Pinson's avatar
Raphaël Pinson committed
71
      script: bundle exec rspec spec/acceptance/*_spec.rb
Raphaël Pinson's avatar
Raphaël Pinson committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
      services: docker
      stage: acceptance
      sudo: required
    -
      bundler_args: 
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=ubuntu1804-64{hypervisor=docker}"]
      rvm: default
      script: bundle exec rspec spec/acceptance/*_spec.rb
      services: docker
      sudo: required
    -
      bundler_args: 
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=centos6-64{hypervisor=docker}"]
      rvm: default
      script: bundle exec rspec spec/acceptance/*_spec.rb
      services: docker
      stage: acceptance
      sudo: required
    -
      bundler_args: 
      env: ["PUPPET_INSTALL_TYPE=agent", "BEAKER_IS_PE=no", "BEAKER_PUPPET_COLLECTION=puppet5", "BEAKER_debug=true", "BEAKER_setfile=centos7-64{hypervisor=docker}"]
      rvm: default
      script: bundle exec rspec spec/acceptance/*_spec.rb
      services: docker
      stage: acceptance
      sudo: required
    -
      env: DEPLOY_TO_FORGE=yes
      stage: deploy
branches:
  only:
    - master
    - /^v\d/
Raphaël Pinson's avatar
Raphaël Pinson committed
105
    - /^\d/
106 107
notifications:
  email: false
Raphaël Pinson's avatar
Raphaël Pinson committed
108 109 110 111 112 113 114 115
deploy:
  provider: puppetforge
  user: camptocamp
  password:
    secure: "XAv4O363tng0KuRnu1ZhhwORy+2CF9UQwdwlFmS+NG9jOaTZZN+PMK8iC7OSIvZN6cfKlYjHRHNuxFBnYlnMrLsM9fVxt4NjjznOgIKQpQDleWk4UitZj5ntyHmUtYtofUd5Bhi/sdYXwGN9pVRCrcfFBmsIRq/dOhXD7Wy5KcQ="
  on:
    tags: true
    all_branches: true
Raphaël Pinson's avatar
Raphaël Pinson committed
116
    condition: "$DEPLOY_TO_FORGE = yes"