Commit 6a0e094 1 parent cc62f1e commit 6a0e094 Copy full SHA for 6a0e094
File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 7
7
run.sh : |
8
8
while true
9
9
do
10
- $@
10
+ folder=nightwatch-zeit-de/$NIGHTWATCH_NAMESPACE/$NIGHTWATCH_ENVIRONMENT
11
+ timestamp=$(date +%Y/%m/%d/%H-%M)
12
+ echo "Nightwatch run $folder/$timestamp"
13
+ rm -f report.xml report.html
14
+
15
+ if ! $@ --junitxml=report.xml then
16
+ failure=1
17
+ fi
18
+
19
+ pipenv run junit2html report.xml report.html
20
+ pipenv run gcs-upload report.html gs://$folder/$timestamp.html
21
+ if [[ $failure == 1 ]]; then
22
+ pipenv run gcs-upload report.html gs://$folder/lastfailed.html
23
+ fi
24
+
11
25
sleep 4m
12
26
done
13
27
@@ -39,10 +53,10 @@ spec:
39
53
- " run"
40
54
- " pytest"
41
55
- " --tb=native"
42
- - " --verbose"
56
+ - " --quiet"
57
+ - " --show-capture=no"
43
58
- " --prometheus"
44
59
- " --prometheus-pushgateway-url=http://pushgateway.cluster-infra.svc.cluster.local:9091/"
45
- - " --json-report=-"
46
60
args :
47
61
- " --nightwatch-environment=$NIGHTWATCH_ENVIRONMENT"
48
62
volumeMounts :
You can’t perform that action at this time.
0 commit comments