v4.0.0-374-g4789820722f3: stm32 results #2760
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2020 Intel Corporation | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Process Test Results | |
# Either a daily based on schedule/cron or only on tag push | |
on: | |
schedule: | |
- cron: '50 06 * * *' | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: checkout | |
uses: actions/checkout@v2 | |
# - name: install-pkgs | |
#run: | | |
# sudo apt-get install -y ninja-build doxygen | |
- name: cache-pip | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-test-pip | |
- name: install-pip | |
run: | | |
pip3 install wheel setuptools GitPython | |
pip3 install git+http://github.com/nashif/junit2html | |
- name: Download Versions | |
id: results | |
run: | | |
latest=$(scripts/version_mgr.py -L) | |
echo ::set-output name=version::${latest}; | |
echo "Latest is ${latest}"; | |
# go through all commits | |
for commit in `scripts/version_mgr.py -l | tail -14`; do | |
if [ "${commit}" == "${latest}" -o -d "results/${commit}" ]; then | |
echo "+ Working on commit ${commit}"; | |
mkdir -p ${commit} output/${commit}/report | |
aws s3 sync --quiet s3://testing.zephyrproject.org/daily_tests/${commit} ${commit} | |
./scripts/merge.py -c ${commit} -t ${commit}/ -o output/${commit}/report | |
# copy files from git tree | |
if [ -d "results/${commit}" ]; then | |
for f in `ls -1 results/${commit}`; do | |
./scripts/convert.py --junit-file results/${commit}/${f} --output-dir output/${commit}/report/ | |
done | |
fi | |
cd output/${commit}/report; | |
count=`ls -1 *.xml 2>/dev/null | wc -l` | |
if [ $count != 0 ]; then | |
~/.local/bin/junit2html --report-matrix index.html *.xml || echo "no xml files yet" | |
fi | |
cd .. | |
aws s3 sync --quiet report s3://testing.zephyrproject.org/daily_tests/${commit}/report | |
cd ../.. | |
fi | |
done | |
- name: Upload Results | |
uses: actions/upload-artifact@master | |
continue-on-error: True | |
with: | |
name: results-${{ steps.results.outputs.version }} | |
path: output/ | |