1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 10:03:45 +01:00
nagios-plugins/.travis.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

2017-09-27 13:09:40 +02:00
#sudo: required
#env:
# matrix:
# - OS_TYPE=centos OS_VERSION=6
# - OS_TYPE=centos OS_VERSION=7
#
#services:
# - docker
#
#before_install:
# - sudo apt-get update
# - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
# - sudo service docker restart
# - sleep 5
# - sudo docker pull centos:centos${OS_VERSION}
#
#
#script:
# # Run tests in Container
# - tests/setup_tests.sh ${OS_VERSION}
#
2017-09-27 10:14:01 +02:00
sudo: required
2017-09-27 13:09:40 +02:00
language: python
2017-09-27 10:14:01 +02:00
env:
2017-09-27 13:09:40 +02:00
global:
- DOCKER_IMAGE=alectolytic/rpmbuilder
- COPR_REPOSITORY=nagios-plugins
- OS_ARCH=x86_64
2017-09-27 10:14:01 +02:00
matrix:
2017-09-27 13:09:40 +02:00
# - OS_TYPE=fedora OS_DIST=fedora OS_VERSION=24
- OS_TYPE=centos OS_DIST=epel OS_VERSION=7
2017-09-27 10:14:01 +02:00
services:
- docker
2017-09-27 13:09:40 +02:00
install: true
2017-09-27 10:14:01 +02:00
script:
2017-09-27 13:14:07 +02:00
- docker run -v ${PWD}:/sources -v ${PWD}:/output:Z -e "SRPM_ONLY=1" ${DOCKER_IMAGE}:${OS_TYPE}-${OS_VERSION}
2017-09-27 13:09:40 +02:00
after_success:
- pip install copr-cli simplejson
#- openssl aes-256-cbc -K $<ENCRYPTED KEY VAR> -iv $<ENCRYPTED KEY VAR> -in .copr.enc -out .copr -d
- openssl aes-256-cbc -K $encrypted_f965aefb5778_key -iv $encrypted_f965aefb5778_iv -in .copr.enc -out .copr -d
- if [ ! -z "${TRAVIS_TAG}" ]; then copr-cli --config .copr build -r ${OS_DIST}-${OS_VERSION}-${OS_ARCH} ${COPR_REPOSITORY} *.src.rpm; fi