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:
9
hack/ci-build-rpm.sh
Executable file
9
hack/ci-build-rpm.sh
Executable 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
|
||||
6
hack/ci-build-unittests.sh
Normal file
6
hack/ci-build-unittests.sh
Normal 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
5
hack/ci-run-unittests.sh
Normal 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
|
||||
Reference in New Issue
Block a user