Add leo init circleci

This commit is contained in:
howardwu 2021-02-24 21:23:47 -08:00
parent ef642cbe54
commit de1d06e9dd
2 changed files with 21 additions and 1 deletions

View File

@ -71,7 +71,20 @@ jobs:
name: leo new
command: |
export LEO=./project/bin/leo
./home/circleci/project/.circleci/leo-new.sh
./project/.circleci/leo-new.sh
leo-init:
docker:
- image: cimg/rust:1.49.0
resource_class: xlarge
steps:
- attach_workspace:
at: /home/circleci/project/
- run:
name: leo new
command: |
export LEO=./project/bin/leo
./project/.circleci/leo-init.sh
workflows:
version: 2
@ -81,3 +94,6 @@ workflows:
- leo-new:
requires:
- rust-stable
- leo-init:
requires:
- rust-stable

4
.circleci/leo-init.sh Executable file
View File

@ -0,0 +1,4 @@
mkdir hello-world && cd hello-world || exit 1
$LEO init
ls -la
$LEO run