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