2019-03-27 16:35:46 +00:00
|
|
|
version: 2.1
|
2019-03-18 19:06:45 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.6
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
2019-03-28 15:23:36 +00:00
|
|
|
name: Build pyspec
|
|
|
|
command: make pyspec
|
2019-03-18 19:06:45 +00:00
|
|
|
|
|
|
|
- run:
|
2019-03-28 16:16:18 +00:00
|
|
|
name: Run py-tests
|
2019-03-28 15:23:36 +00:00
|
|
|
command: make test
|
2019-03-18 19:06:45 +00:00
|
|
|
|
2019-04-17 01:49:49 +00:00
|
|
|
# TODO see #928: decide on CI triggering of yaml tests building,
|
2019-04-12 14:03:04 +00:00
|
|
|
# and destination of output (new yaml tests LFS-configured repository)
|
|
|
|
#
|
2019-04-17 01:49:49 +00:00
|
|
|
# - run:
|
|
|
|
# name: Generate YAML tests
|
|
|
|
# command: make gen_yaml_tests
|
|
|
|
#
|
2019-04-12 14:03:04 +00:00
|
|
|
# - 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: /.*/
|