forked from RedHatInsights/ros-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr_check.sh
executable file
·28 lines (21 loc) · 992 Bytes
/
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
#!/bin/bash
# --------------------------------------------
# Options that must be configured by app owner
# --------------------------------------------
export APP_NAME="ros" # name of app-sre "application" folder this component lives in
export COMPONENT_NAME="ros-backend" # name of app-sre "resourceTemplate" in deploy.yaml for this component
export COMPONENTS="ros-backend"
export IMAGE="quay.io/cloudservices/ros-backend"
export DOCKERFILE="Dockerfile"
export IQE_PLUGINS="ros"
export IQE_MARKER_EXPRESSION="ros_smoke"
export IQE_FILTER_EXPRESSION=""
export 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
source $CICD_ROOT/build.sh
# Deploy ros to an ephemeral namespace for testing
source $CICD_ROOT/deploy_ephemeral_env.sh
# Run iqe-ros somke tests with ClowdJobInvocation
source $CICD_ROOT/cji_smoke_test.sh