add groups example in circleci

This commit is contained in:
collin 2022-08-08 15:07:42 -07:00
parent a75df0c1f5
commit 0b95c19652
2 changed files with 25 additions and 4 deletions

View File

@ -128,7 +128,7 @@ jobs:
- attach_workspace:
at: /home/circleci/project/
- run:
name: test helloworld
name: test helloworld example
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/test-helloworld.sh
@ -141,7 +141,7 @@ jobs:
- attach_workspace:
at: /home/circleci/project/
- run:
name: test bubblesort
name: test bubblesort example
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/test-bubblesort.sh
@ -154,10 +154,23 @@ jobs:
- attach_workspace:
at: /home/circleci/project/
- run:
name: test core
name: test core example
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/test-core.sh
test-groups:
docker:
- image: cimg/rust:1.62
resource_class: xlarge
steps:
- attach_workspace:
at: /home/circleci/project/
- run:
name: test groups example
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/test-groups.sh
workflows:
version: 2
main-workflow:
@ -179,4 +192,7 @@ workflows:
- leo-executable
- test-core:
requires:
- leo-executable
- leo-executable
- test-groups:
requires:
- leo-executable

5
.circleci/test-groups.sh Executable file
View File

@ -0,0 +1,5 @@
# Build and run the groups Leo program.
cd ./project/examples/groups
# Run `leo run`.
$LEO run