.travis.yml 1.17 KB
Newer Older
1
---
2
sudo: false
Tim Meusel's avatar
Tim Meusel committed
3
dist: trusty
4 5
language: ruby
cache: bundler
6 7 8 9 10
bundler_args: --without system_tests development
before_install:
  - bundle -v
  - rm Gemfile.lock || true
  - gem update --system
Tim Meusel's avatar
Tim Meusel committed
11
  - gem update bundler
12 13
  - gem --version
  - bundle -v
14 15
script:
  - 'bundle exec rake $CHECK'
liamjbennett's avatar
liamjbennett committed
16
matrix:
17
  fast_finish: true
18
  include:
19
  - rvm: 2.1.9
Tim Meusel's avatar
Tim Meusel committed
20
    env: PUPPET_VERSION="~> 4.0" CHECK=test
Tim Meusel's avatar
Tim Meusel committed
21
  - rvm: 2.2.6
Tim Meusel's avatar
Tim Meusel committed
22
    env: PUPPET_VERSION="~> 4.0" CHECK=test
Tim Meusel's avatar
Tim Meusel committed
23
  - rvm: 2.3.3
Tim Meusel's avatar
Tim Meusel committed
24
    env: PUPPET_VERSION="~> 4.0" CHECK=test
Tim Meusel's avatar
Tim Meusel committed
25
  - rvm: 2.4.0
Tim Meusel's avatar
Tim Meusel committed
26
    env: PUPPET_VERSION="~> 4.0" CHECK=test
Tim Meusel's avatar
Tim Meusel committed
27 28 29 30
  - rvm: 2.4.0
    env: PUPPET_VERSION="~> 4.0" CHECK=rubocop
  - rvm: 2.4.0
    env: PUPPET_VERSION="~> 4.0" CHECK=build DEPLOY_TO_FORGE=yes
Tim Meusel's avatar
Tim Meusel committed
31 32 33
branches:
  only:
  - master
Tim Meusel's avatar
Tim Meusel committed
34
  - /^v\d/
35 36
notifications:
  email: false
liamjbennett's avatar
liamjbennett committed
37 38 39 40 41 42 43 44 45
deploy:
  provider: puppetforge
  user: puppet
  password:
    secure: "j/Db/NnuJUwyFWGVwZEciC/0Xrhaes647UK49ZnlZTjUppUeTsqY/rKE8Pc4jpiW8DsfeGijCYP1O02tquH+KSKSwiwxIBjbToFjhNNJ6Qgh0DGIR29VZkiyirh5ZkK1yLMx9Ciyn8opwOXHqTRMk6JwAY05Gux1sD2T7Eu2c4w="
  on:
    tags: true
    # all_branches is required to use tags
    all_branches: true
Tim Meusel's avatar
Tim Meusel committed
46 47
    # Only publish the build marked with "DEPLOY_TO_FORGE"
    condition: "$DEPLOY_TO_FORGE = yes"