-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
82 lines (71 loc) · 2.38 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
sudo: false
dist: trusty
language: ruby
cache: bundler
bundler_args: --without system_tests
before_install:
- bundle -v
- rm Gemfile.lock || true
- gem update --system
- gem update bundler
- gem --version
- bundle -v
script:
- bundle exec rake $CHECK
matrix:
fast_finish: true
include:
# Check that the module performs for Puppet 4.9.x
- rvm: 2.3.1
env: PUPPET_VERSION="~> 4.9" CHECK=spec
# Check for conflict markers, whitespace errors, and unwanted files
- rvm: 2.4.2
env: PUPPET_VERSION="~> 5.0"
script:
- git diff --check
- bundle exec rake check:dot_underscore check:test_file check:git_ignore check:symlinks
# Check for syntax and linting errors
- rvm: 2.4.2
env: PUPPET_VERSION="~> 5.0" CHECK='validate lint rubocop syntax:hiera'
# Check that the module performs for Puppet 5.0.x
- rvm: 2.4.2
env: PUPPET_VERSION="~> 5.0" CHECK=spec
# Generate the Puppet Strings documentation (YARD)
- rvm: 2.4.2
env: PUPPET_VERSION="~> 5.0" CHECK=strings:generate PUBLISH_PAGES=true
# Build the deployment artifact
- rvm: 2.4.2
env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
branches:
only:
- master
- /^\d+\.\d+\.\d+$/
notifications:
email: false
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: docs
on:
branch: master
condition: $PUBLISH_PAGES = true
- provider: puppetforge
skip_cleanup: true
user: wwkimball
password:
secure: "GWdqSFq8cqJQLTsA68yK1sii/n/FfLak+MCCWEx/teeMRPrEN9CRxWniMfzvn0BH\
lhdAThUbUCkWITDIuzGkuDGJbP6+g2PoglJeT0xbehVKbx/dDfEcXRzNLjgPEkYxysUbpEH\
Gad9CL1SrzXpKQrP9EjzvTZvXFEd60lMoc2HwLoxTBUAbgi/L5KRThQ/RGW1QUYt93tcrmx\
yh3/HpDKygSL0+q6G0gGSWw6AshS6Y5rEwtlfYJYMwqOhtYBWxu5Kp8n5/FTgd1vY408RZe\
i8Em0pfDDr2wTwvY5vfbg1yj6Tqdz2iqHpCxYYLGyY/GQt6fb0uuWNygcz7gpRuZw4OHZ47\
hlCSVQS0oDXXNaNR/I1r/mX8feJMoeGR3wMOmY8ZiPNwnaoDOm6YZTs6lfnFTrmO/eT9KCq\
8+KTvCxWqAij+VcSVk9/CY9ddxqQWUT3hah1wHEd+cL7a2tIo5HZEoLlhECdOEWfDh6SqeB\
THR6ksKqxvDuInm1bE3egiHWdvC/2n39clW6pYHaTDhCSTk4b1eWnxGTHtYRqocLRPUuQRW\
FaLDAvDI7cpuHQDnQgfU6Eh5CvIneNK94u1Xl74Yd89Fm8p+5uHy50ZCBJaqrOpdHmZwouy\
boYgV1m3VLYLifg4DwULbkekb45RJ96L9vf9FGp8M/98FwSQ2F4="
on:
tags: true
all_branches: true
condition: $DEPLOY_TO_FORGE = yes