From ef4b65a81b55b09c8f2112f4a06438e5c9321469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samu=CC=81el=20Jo=CC=81n=20Gunnarsson?= Date: Wed, 27 Sep 2017 13:09:40 +0200 Subject: [PATCH] Initial copr test. Bound to fail :-D --- .copr.enc | Bin 0 -> 192 bytes .travis.yml | 48 +++++++++++++++++++++++++++++++++++++----------- output/.gitkeep | 0 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 .copr.enc create mode 100644 output/.gitkeep diff --git a/.copr.enc b/.copr.enc new file mode 100644 index 0000000000000000000000000000000000000000..788279790d8136d0298f09c419709c0f1b72338f GIT binary patch literal 192 zcmV;x06+g9g?t(~2v3RJQrbUM1Kzu_jq^uSiZim~x-4dW#LZNQ{c1%G8ZJiD%qG-o zrA@N&f$+x$WhwU^fV>Cgcw4;{v8}(ct_p|q!FvJ``IJ}2A8Rpj%`P3kLd1m5PQ&=v zGj9UfVm21X^l-5@ADhG)M#gs%LskGb`LfEW0qjJXf;m~Up%;TiN}YXuvdVsRyz_g5 u-D~5U1X8Rekh{u)VVp#e /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} +# sudo: required +language: python + env: + global: + - DOCKER_IMAGE=alectolytic/rpmbuilder + - COPR_REPOSITORY=nagios-plugins + - OS_ARCH=x86_64 matrix: - - OS_TYPE=centos OS_VERSION=6 - - OS_TYPE=centos OS_VERSION=7 + # - OS_TYPE=fedora OS_DIST=fedora OS_VERSION=24 + - OS_TYPE=centos OS_DIST=epel 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} - +install: true script: - # Run tests in Container - - tests/setup_tests.sh ${OS_VERSION} + - docker run -v ${PWD}:/check_firewall_active -v ${PWD}:/output:Z -e "SRPM_ONLY=1" ${DOCKER_IMAGE}:${OS_TYPE}-${OS_VERSION} + +after_success: + - pip install copr-cli simplejson + #- openssl aes-256-cbc -K $ -iv $ -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 diff --git a/output/.gitkeep b/output/.gitkeep new file mode 100644 index 0000000..e69de29