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
|
2017-09-27 13:21:46 +02:00
|
|
|
- COPR_REPOSITORY=opinkerfi/nagios-plugins
|
2017-09-27 13:09:40 +02:00
|
|
|
- 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:21:46 +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:54:48 +02:00
|
|
|
- docker run -v ${PWD}/check_firewall_active:/sources:ro -v ${PWD}:/output:rw -v ${PWD}/workspace:/workspace:rw -v ${PWD}/rpmbuild:/rpmbuild:rw -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
|
2017-09-27 13:44:30 +02:00
|
|
|
- openssl aes-256-cbc -K $encrypted_f965aefb5778_key -iv $encrypted_f965aefb5778_iv -in .copr.enc -out .copr -d
|
2017-09-27 13:09:40 +02:00
|
|
|
- if [ ! -z "${TRAVIS_TAG}" ]; then copr-cli --config .copr build -r ${OS_DIST}-${OS_VERSION}-${OS_ARCH} ${COPR_REPOSITORY} *.src.rpm; fi
|
2017-09-27 13:44:30 +02:00
|
|
|
|