Add leo setup to circleci

This commit is contained in:
howardwu 2021-02-24 22:13:55 -08:00
parent 4cb0334453
commit c3d08e9c6c
2 changed files with 23 additions and 0 deletions

View File

@ -112,6 +112,19 @@ jobs:
export LEO=/home/circleci/project/project/bin/leo export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/leo-add-remove.sh ./project/.circleci/leo-add-remove.sh
leo-setup:
docker:
- image: cimg/rust:1.50.0
resource_class: xlarge
steps:
- attach_workspace:
at: /home/circleci/project/
- run:
name: leo setup
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/leo-setup.sh
workflows: workflows:
version: 2 version: 2
main-workflow: main-workflow:
@ -129,3 +142,6 @@ workflows:
- leo-add-remove: - leo-add-remove:
requires: requires:
- rust-stable - rust-stable
- leo-setup:
requires:
- rust-stable

7
.circleci/leo-setup.sh Executable file
View File

@ -0,0 +1,7 @@
# leo setup
cd examples/pedersen-hash || exit 1
$LEO setup
$LEO setup
$LEO setup --skip-key-check
$LEO clean