forked from glensc/nagios-plugin-check_raid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (56 loc) · 1.5 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
language: perl
dist: trusty
sudo: required
git:
depth: 6000
cache:
directories:
- cache
jobs:
include:
- perl: "5.28"
- perl: "5.26"
- perl: "5.24"
- perl: "5.22"
- perl: "5.20"
- perl: "5.18"
- perl: "5.16"
- perl: "5.14"
- perl: "5.12"
- perl: "5.10"
- perl: "5.8"
# TODO: would be nice to have two separate stages, one for build, and other for actually publishing
- stage: GitHub Release
# deploy from 5.22 version, the other versions somewhy bundle too much dependencies
perl: "5.22"
script:
- set -e
- sudo apt-get install rpm
- gem install fpm
- make dist
# https://docs.travis-ci.com/user/deployment/releases
deploy:
provider: releases
api_key:
secure: lE3YmAY2AR4QJE+62fFljzG9TruoNgEcg/+MxokLsufgN3ZDTKXVbyFaJySIfFRJ3VezRvh84JLzrcOeQZxN14Qruqnp1ZJ5NoMDT9HUxBJmikBTfopJobUFeQPvZXBb2o+XrF57KNtRhFGLoeXMvMVoPO9IlQ1zv4Z6dtJe2GM=
file_glob: true
file:
- ./check_raid*.pl
- ./*.rpm
- ./*.deb
skip_cleanup: true
overwrite: true
on:
repo: glensc/nagios-plugin-check_raid
tags: true
script:
- set -e
- make test
before_deploy:
- ruby --version
- gem install chandler
# Create token in https://github.com/settings/tokens with 'public_repo' access
# and set as env var:
# $ travis env set -p CHANDLER_GITHUB_API_TOKEN ...
- chandler push $TRAVIS_TAG
# vim:ft=yaml:et:ts=2:sw=2