forked from RedHatInsights/chrome-service-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr_check.sh
executable file
·33 lines (27 loc) · 1.15 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
#!/bin/bash
# --------------------------------------------
# Options that must be configured by app owner
# --------------------------------------------
export APP_NAME="chrome-service" # name of app-sre "application" folder this component lives in
export COMPONENT_NAME="chrome-service" # name of app-sre "resourceTemplate" in deploy.yaml for this component
export IMAGE="quay.io/cloudservices/chrome-service"
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
export APP_ROOT=$(pwd)
# IQE_PLUGINS="e2e"
# IQE_MARKER_EXPRESSION="smoke"
# IQE_FILTER_EXPRESSION=""
# IQE_CJI_TIMEOUT="30m"
# 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
# Need to make a dummy results file to make tests pass
mkdir -p $WORKSPACE
cat << EOF > $WORKSPACE/artifacts/junit-dummy.xml
<testsuite tests="1">
<testcase classname="dummy" name="dummytest"/>
</testsuite>
EOF
# Build and publish container image
source $CICD_ROOT/build.sh
## Roll out ephemeral env
source $CICD_ROOT/deploy_ephemeral_env.sh