temporarily disable the yaml save and commit, exact workflow TBD in future PR

This commit is contained in:
protolambda 2019-04-13 00:03:04 +10:00
parent 6b701a6c8b
commit fcc4dc3710
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 68 additions and 65 deletions

View File

@ -19,68 +19,71 @@ jobs:
name: Generate YAML tests
command: make gen_yaml_tests
- store_artifacts:
path: test-reports
destination: test-reports
- run:
name: Save YAML tests for deployment
command: |
mkdir /tmp/workspace
cp -r yaml_tests /tmp/workspace/
git log -1 >> /tmp/workspace/latest_commit_message
- persist_to_workspace:
root: /tmp/workspace
paths:
- yaml_tests
- latest_commit_message
commit:
docker:
- image: circleci/python:3.6
steps:
- attach_workspace:
at: /tmp/workspace
- add_ssh_keys:
fingerprints:
- "01:85:b6:36:96:a6:84:72:e4:9b:4e:38:ee:21:97:fa"
- run:
name: Checkout test repository
command: |
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
git clone git@github.com:ethereum/eth2.0-tests.git
- run:
name: Commit and push generated YAML tests
command: |
cd eth2.0-tests
git config user.name 'eth2TestGenBot'
git config user.email '47188154+eth2TestGenBot@users.noreply.github.com'
for filename in /tmp/workspace/yaml_tests/*; do
rm -rf $(basename $filename)
cp -r $filename .
done
git add .
if git diff --cached --exit-code >& /dev/null; then
echo "No changes to commit"
else
echo -e "Update generated tests\n\nLatest commit message from eth2.0-specs:\n" > commit_message
cat /tmp/workspace/latest_commit_message >> commit_message
git commit -F commit_message
git push origin master
fi
workflows:
version: 2.1
build_and_commit:
jobs:
- build:
filters:
tags:
only: /.*/
- commit:
requires:
- build
filters:
tags:
only: /.*/
branches:
ignore: /.*/
# TODO in future PR (after #851): decide on CI triggering of yaml tests building,
# and destination of output (new yaml tests LFS-configured repository)
#
# - store_artifacts:
# path: test-reports
# destination: test-reports
#
# - run:
# name: Save YAML tests for deployment
# command: |
# mkdir /tmp/workspace
# cp -r yaml_tests /tmp/workspace/
# git log -1 >> /tmp/workspace/latest_commit_message
# - persist_to_workspace:
# root: /tmp/workspace
# paths:
# - yaml_tests
# - latest_commit_message
# commit:
# docker:
# - image: circleci/python:3.6
# steps:
# - attach_workspace:
# at: /tmp/workspace
# - add_ssh_keys:
# fingerprints:
# - "01:85:b6:36:96:a6:84:72:e4:9b:4e:38:ee:21:97:fa"
# - run:
# name: Checkout test repository
# command: |
# ssh-keyscan -H github.com >> ~/.ssh/known_hosts
# git clone git@github.com:ethereum/eth2.0-tests.git
# - run:
# name: Commit and push generated YAML tests
# command: |
# cd eth2.0-tests
# git config user.name 'eth2TestGenBot'
# git config user.email '47188154+eth2TestGenBot@users.noreply.github.com'
# for filename in /tmp/workspace/yaml_tests/*; do
# rm -rf $(basename $filename)
# cp -r $filename .
# done
# git add .
# if git diff --cached --exit-code >& /dev/null; then
# echo "No changes to commit"
# else
# echo -e "Update generated tests\n\nLatest commit message from eth2.0-specs:\n" > commit_message
# cat /tmp/workspace/latest_commit_message >> commit_message
# git commit -F commit_message
# git push origin master
# fi
#workflows:
# version: 2.1
#
# build_and_commit:
# jobs:
# - build:
# filters:
# tags:
# only: /.*/
# - commit:
# requires:
# - build
# filters:
# tags:
# only: /.*/
# branches:
# ignore: /.*/