circle ci build
This commit is contained in:
parent
2a83077844
commit
36a5844148
|
@ -1,7 +1,13 @@
|
||||||
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
||||||
# See: https://circleci.com/docs/configuration-reference
|
# See: https://circleci.com/docs/configuration-reference
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
parameters:
|
||||||
|
run_build:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
environment:
|
||||||
|
type: string
|
||||||
|
default: "m5-atom"
|
||||||
orbs:
|
orbs:
|
||||||
python: circleci/python@1.4.0
|
python: circleci/python@1.4.0
|
||||||
|
|
||||||
|
@ -12,6 +18,8 @@ jobs:
|
||||||
executor: python/default
|
executor: python/default
|
||||||
# Add steps to the job
|
# Add steps to the job
|
||||||
# See: https://circleci.com/docs/configuration-reference/#steps
|
# See: https://circleci.com/docs/configuration-reference/#steps
|
||||||
|
environment:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
@ -19,11 +27,12 @@ jobs:
|
||||||
command: "pip install --upgrade platformio"
|
command: "pip install --upgrade platformio"
|
||||||
- run:
|
- run:
|
||||||
name: "build"
|
name: "build"
|
||||||
command: "pip run"
|
command: "pip run -e << pipeline.parameters.environment >>"
|
||||||
|
|
||||||
# Orchestrate jobs using workflows
|
# Orchestrate jobs using workflows
|
||||||
# See: https://circleci.com/docs/configuration-reference/#workflows
|
# See: https://circleci.com/docs/configuration-reference/#workflows
|
||||||
workflows:
|
workflows:
|
||||||
build-workflow:
|
build-workflow:
|
||||||
|
when: << pipeline.parameters.run_build >>
|
||||||
jobs:
|
jobs:
|
||||||
- pio-build
|
- pio-build
|
||||||
|
|
Loading…
Reference in New Issue