forked from mozilla-platform-ops/ronin_puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (52 loc) · 1.94 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
language: ruby
os: linux
dist: xenial
services: docker
rvm:
- 2.6
cache:
directories:
- $HOME/.cache/pre-commit
# safelist - we only build on this list
branches:
only:
- master
before_install:
- gem update --system
- gem install bundler
gemfile: ".gemfile"
env:
- KITCHEN_TARGET=bitbar
- KITCHEN_TARGET=linux
- KITCHEN_TARGET=maas-region
- KITCHEN_TARGET=maas-rack
stages:
- pre-commit
- install
- test
script:
- KITCHEN_YAML=.kitchen.docker.yml bundle exec kitchen converge $KITCHEN_TARGET
- KITCHEN_YAML=.kitchen.docker.yml bundle exec kitchen verify $KITCHEN_TARGET
jobs:
include:
- stage: pre-commit
env: KITCHEN_TARGET=none
name: "exec pre-commit hooks"
language: python
before_install: pip3 install pre-commit
script: pre-commit run --all-files
- stage: install
env: KITCHEN_TARGET=none
name: "r10k puppetfile install"
script: bundle exec r10k puppetfile install --moduledir=/tmp/r10k_module_test -v --force
notifications:
slack:
secure: pqcqAA4sJcvDf6raq5M7yyQENUFuexW5Vd6mgoQSQu9y2tP1CfWB/wfXEUQXPqpj77PVhy3YtU7IJmcigamwdAY1VjmkeSquyRRcAqOtLjVl6Lf7tfiHTUd4tgxtWR9CbM6XjPvrTVadeikyKgpTcG0+CKqTqwD3veBqqFwifoxcvPsQkHiRR9JqB3cU8eBpQaMBCTCWxWUTxPaJKENQGk63FbFf/QYjHwvbXVdVuSqgR3EwPa2XJRBNBxIl/+oTcvjT6Muv+4y7ucvYaIjpi8+oHuC2IWLbK79rNYLBBlWWWgNWN1O1BMs7vuwn8Q/WLxK77n8KB6WkY/S3VsJfLeY7ToK/qnopi/ZGQj8d7lyV6Y4gBpo5dxYQAWX3M240JkEderiGjKPg33dWKyFYt3TXxjq7lvFt4rIhWJFxPJG8xd+xOlZv9ibrnxZ81cV9V3v1lDn0GeMLNkigY3rg9fHQSmojAePjrPa33NvrHdT4k/gBZhowaqKvpOKnvhVZUuNsrKErT8GrflMRnc7Llm+vaLOo+csXJ/Cf9k5bgrMD9hqxPRT6m1TjTmDu3BgLmGAUrXkAd2CFThjB0Y9ceS6DQnmrp5Aral67cxxDXIkVPDJKhT4KUs3L1uqrl9jz99JI/6WKG5VQtyoQjSddI4r2oqXwpWOvQSH1Sa64VW0=
on_success: always
on_failure: always
template:
- "%{repository_slug} #%{build_number} (%{branch} - %{commit} - %{author})"
- "Status: %{message}"
- "Change view: %{compare_url}"
- "Build details: %{build_url}"