Skip to content

Commit

Permalink
Spit details in format (#6564)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Maity authored Feb 13, 2020
1 parent d07412f commit ef99687
Showing 1 changed file with 80 additions and 5 deletions.
85 changes: 80 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: CI

on: [pull_request]


jobs:
docker_ubuntu_16_04:
env:
ELAPSED: time
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
Expand All @@ -20,17 +23,32 @@ jobs:
- name: run integration test
run: |
mkdir -p /tmp/testhome
START_TIME=$(date -u +%s)
MINIKUBE_HOME=/tmp/testhome ./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=docker -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt
END_TIME=$(date -u +%s)
ELAPSED=$(($END_TIME-$START_TIME))
min=$((${ELAPSED}/60))
sec=$((${ELAPSED}%60))
ELAPSED="${min} min $sec seconds "
echo ::set-env name=ELAPSED::${ELAPSED}
- name: generate gopogh report
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true
STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true
report="Docker_Ubuntu_16_04 : Completed with ${STAT} in ${ELAPSED}"
echo ${report}
- uses: actions/upload-artifact@v1
with:
name: docker_on_ubuntu_16_04_report
path: report
docker_ubuntu_18_04:
env:
ELAPSED: time
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
Expand All @@ -47,17 +65,31 @@ jobs:
- name: run integration test
run: |
mkdir -p /tmp/testhome
START_TIME=$(date -u +%s)
MINIKUBE_HOME=/tmp/testhome ./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=docker -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt
END_TIME=$(date -u +%s)
ELAPSED=$(($END_TIME-$START_TIME))
min=$((${ELAPSED}/60))
sec=$((${ELAPSED}%60))
ELAPSED="${min} min $sec seconds"
echo ::set-env name=ELAPSED::${ELAPSED}
- name: generate gopogh report
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true
STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true
report="Docker_Ubuntu_18_04 : Completed with ${STAT} in ${ELAPSED}"
echo ${report}
- uses: actions/upload-artifact@v1
with:
name: docker_on_ubuntu_18_04_report
path: report
docker_macos:
env:
ELAPSED: time
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -79,17 +111,32 @@ jobs:
- name: run integration test
run: |
mkdir -p /tmp/testhome
START_TIME=$(date -u +%s)
MINIKUBE_HOME=/tmp/testhome ./out/e2e-darwin-amd64 -minikube-start-args=--vm-driver=docker -expected-default-driver= -test.timeout=70m -test.v -binary=./out/minikube-darwin-amd64 2>&1 | tee ./report/testout.txt
END_TIME=$(date -u +%s)
ELAPSED=$(($END_TIME-$START_TIME))
min=$((${ELAPSED}/60))
sec=$((${ELAPSED}%60))
ELAPSED="${min} min $sec seconds"
echo ::set-env name=ELAPSED::${ELAPSED}
- name: generate gopogh report
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker macos" -repo github.com/kubernetes/minikube/ || true
STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker macos" -repo github.com/kubernetes/minikube/) || true
report="Docker_mac_os : Completed with ${STAT} in ${ELAPSED}"
echo ${report}
- uses: actions/upload-artifact@v1
with:
name: docker_on_macos_report
path: ./report
none_ubuntu16_04:
env:
ELAPSED: time
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
Expand All @@ -106,17 +153,32 @@ jobs:
- name: run integration test
run: |
mkdir -p /tmp/testhome
START_TIME=$(date -u +%s)
MINIKUBE_HOME=/tmp/testhome sudo -E ./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=none -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt
END_TIME=$(date -u +%s)
ELAPSED=$(($END_TIME-$START_TIME))
min=$((${ELAPSED}/60))
sec=$((${ELAPSED}%60))
ELAPSED="${min} min $sec seconds"
echo ::set-env name=ELAPSED::${ELAPSED}
- name: generate gopogh report
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true
STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true
report="None_Ubuntu_16_04 : Completed with ${STAT} in ${ELAPSED}"
echo ${report}
- uses: actions/upload-artifact@v1
with:
name: none_on_ubuntu_16_04
path: report
none_ubuntu_18_04:
env:
ELAPSED: time
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
Expand All @@ -132,12 +194,25 @@ jobs:
- name: run integration test
run: |
mkdir -p /tmp/testhome
START_TIME=$(date -u +%s)
MINIKUBE_HOME=/tmp/testhome sudo -E ./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=none -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt
END_TIME=$(date -u +%s)
ELAPSED=$(($END_TIME-$START_TIME))
min=$((${ELAPSED}/60))
sec=$((${ELAPSED}%60))
ELAPSED="${min} min $sec seconds"
echo ::set-env name=ELAPSED::${ELAPSED}
- name: generate gopogh report
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true
STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true
report="None_Ubuntu_18_04 : Completed with ${STAT} in ${ELAPSED}"
echo ${report}
- uses: actions/upload-artifact@v1
with:
name: none_on_ubuntu_latest_report
Expand Down

0 comments on commit ef99687

Please sign in to comment.