forked from identitatem/idp-configs-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpr_check.sh
executable file
·34 lines (27 loc) · 1.09 KB
/
pr_check.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Copyright Red Hat
echo "os: $OSTYPE"
echo "shell: $SHELL"
export PATH=$PATH:$PWD
# --------------------------------------------
# Options that must be configured by app owner
# --------------------------------------------
APP_NAME="idp-configs" # name of app-sre "application" folder this component lives in
COMPONENT_NAME="idp-configs-api" # name of app-sre "resourceTemplate" in deploy.yaml for this component
IMAGE="quay.io/cloudservices/idp-configs-api"
# IQE_PLUGINS="idp-configs-api"
# IQE_MARKER_EXPRESSION="smoke"
# IQE_FILTER_EXPRESSION=""
echo "LABEL quay.expires-after=3d" >> ./Dockerfile # tag expire in 3 days
# Install bonfire repo/initialize
CICD_URL=https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd
curl -s $CICD_URL/bootstrap.sh > .cicd_bootstrap.sh && source .cicd_bootstrap.sh
source $CICD_ROOT/build.sh
source $CICD_ROOT/deploy_ephemeral_env.sh
#source $CICD_ROOT/smoke_test.sh
mkdir -p $WORKSPACE/artifacts
cat << EOF > ${WORKSPACE}/artifacts/junit-dummy.xml
<testsuite tests="1">
<testcase classname="dummy" name="dummytest"/>
</testsuite>
EOF