1
0
mirror of https://github.com/openshift/openshift-ansible.git synced 2026-02-05 06:46:04 +01:00

Add CI scripts in hack/

Prow CI currently runs several commands before e2e tests. These commands 
should be placed in our repo
This commit is contained in:
Vadim Rutkovsky
2018-10-01 12:37:15 +02:00
parent fa7d86f23d
commit 70e2b55e28
3 changed files with 20 additions and 0 deletions

9
hack/ci-build-rpm.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# This script builds RPMs for Prow CI
tito tag --offline --accept-auto-changelog --use-release '9999%{?dist}'
tito build --output="_output/local/releases" --rpm --test --offline --quiet
mkdir _output/local/releases/rpms
mv _output/local/releases/noarch/* _output/local/releases/rpms
createrepo _output/local/releases/rpms

View File

@@ -0,0 +1,6 @@
#!/bin/bash
# This script installs tox dependencies in the test container
yum install -y gcc libffi-devel python-devel openssl-devel python-pip
pip install tox
chmod uga+w /etc/passwd

5
hack/ci-run-unittests.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
# This script runs tox tests in test container
echo "${USER:-default}:x:$(id -u):$(id -g):Default User:${HOME:-/tmp}:/sbin/nologin" >> /etc/passwd
tox 2>&1 | tee /tmp/artifacts/output.log