Skip to content

Commit

Permalink
Merge pull request #1 from guilbaults/rpmbuild
Browse files Browse the repository at this point in the history
Rpmbuild
  • Loading branch information
guilbaults authored Mar 19, 2020
2 parents 97f3077 + 5dbab11 commit caae780
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
26 changes: 23 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
language: python
sudo: false
sudo: required
cache: pip
python:
- '3.6'
fail_fast: true
env:
global:
- DOCKER_IMAGE=alectolytic/rpmbuilder
- OS_ARCH=x86_64
matrix:
- OS_TYPE=centos OS_DIST=epel OS_VERSION=7
services:
- docker
install: true
before_install:
- pip install flake8
- pip install flake8
script:
- flake8 check_jbod.py
- flake8 check_jbod.py
- docker run -v ${PWD}:/sources -v ${PWD}:/output:Z ${DOCKER_IMAGE}:${OS_TYPE}-${OS_VERSION}
deploy:
provider: releases
api_key:
secure: v8lb6DA3CHZeWWy6K1wMtyWp5YrYm157hi+kkFpmvRNu9IVfBLI3UwEZJi9gVpTXp4rFjrahG8tCASaerERzRNaUMWViE5XNmFa4e5ZXYPKn2LtHAP8NOvmfV1ZoaJTgLcOJCOuJ9E+kzZtiquuZFbprRdXvHDo2oYBLw697rvS3d8ai/pMPrewF1I6UIPAxcrXXwzJ/7vvIxlCs9CT+WoqQVOLj++pS8rEQ/LFISwRHoIdACdgiCyZiPpTNPtPdszCsd/3DMW5RBAXMnZjcGLQg2s0gV+yTIhfMUHux/Yj4Aj/ZtFg9hF696kZcvLI++ePh2mEeL1ZH87OisBXXlWNW9vZdZW+076nQ59KcB5u3PWGx4I6FMp/Zl4IiiCmkOzkVjU676pk192+7WgpL/xvowFaGoZ7p4zzm9WoT5I51qegKT67oWXvyTljOZKAzVAnGGSvkNkDDplY7MYvn4CoT+4GRlTQlWQVc8P+cBt5DNlYGlNJA8552jr/XE+SYU2yktqGMmUlLKXMwi9EZjwNwSN3bOuIASoVF8cuk1IJNkIywsqQUCd8gZGjHiLv34qnpMxE8QkTUAFGLV6WeaCu1Wd9Y7PkTNQJkGJnEWKf6Y3sKZzWQ2C5e1gud5FbfH49dZsX3omcsIbeYaGG+WMiC32m3bx54qF2TXpLYQx0=
file: "*.rpm"
draft: true
file_glob: true
skip_cleanup: true
on:
tags: true
14 changes: 10 additions & 4 deletions check_jbod-el7.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Name: check_jbod
Version: 0.0.2
%global gittag 0.0.2
Version: 0.0.3
%global gittag 0.0.3
Release: 1%{?dist}
Summary: Nagios script to check the status and fault of a 84 slots Xyratex JBOD.
Summary: Nagios script to check the status and fault in Xyratex JBOD.

License: Apache License 2.0
URL: https://github.com/guilbaults/%{name}
Expand All @@ -13,9 +13,13 @@ BuildRequires: python%{python3_pkgversion}-devel
Requires: sg3_utils

%description
This tool is used to monitor a 84 slots Xyratex JBOD, also known as:
This tool is used to monitor Xyratex JBOD, also known as:

* Seagate/Xyratex SP-2584
* Seagate/Xyratex SP-3584
* Seagate Exos E 4U106
* Dell MD1420
These JBODs are probably also supported with some slight modifications:
* Dell MD1280
* Lenovo D3284

Expand All @@ -38,6 +42,8 @@ rm -rf $RPM_BUILD_ROOT
/usr/lib64/nagios/plugins/%{name}

%changelog
* Thu Mar 19 2020 Simon Guilbault <[email protected]> 0.0.3-1
- Adding other models of JBODs
* Fri Jul 13 2018 Simon Guilbault <[email protected]> 0.0.2-1
- Fixing the shebang and the requirements
* Fri Jul 13 2018 Simon Guilbault <[email protected]> 0.0.1-1
Expand Down

0 comments on commit caae780

Please sign in to comment.