mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 20:54:16 +03:00
Add leo init circleci
This commit is contained in:
parent
ef642cbe54
commit
de1d06e9dd
@ -71,7 +71,20 @@ jobs:
|
|||||||
name: leo new
|
name: leo new
|
||||||
command: |
|
command: |
|
||||||
export LEO=./project/bin/leo
|
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:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
@ -81,3 +94,6 @@ workflows:
|
|||||||
- leo-new:
|
- leo-new:
|
||||||
requires:
|
requires:
|
||||||
- rust-stable
|
- rust-stable
|
||||||
|
- leo-init:
|
||||||
|
requires:
|
||||||
|
- rust-stable
|
||||||
|
4
.circleci/leo-init.sh
Executable file
4
.circleci/leo-init.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
mkdir hello-world && cd hello-world || exit 1
|
||||||
|
$LEO init
|
||||||
|
ls -la
|
||||||
|
$LEO run
|
Loading…
Reference in New Issue
Block a user