mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Add .circleci/config.yml
This commit is contained in:
parent
15e2ccf1b3
commit
8d63d9368e
@ -1,39 +1,31 @@
|
|||||||
# This config was automatically generated from your source code
|
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
||||||
# Stacks detected: cicd:github-actions:.github/workflows,deps:python:docs
|
# See: https://circleci.com/docs/configuration-reference
|
||||||
version: 2.1
|
version: 2.1
|
||||||
orbs:
|
|
||||||
python: circleci/python@2
|
# Define a job to be invoked later in a workflow.
|
||||||
|
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
|
||||||
jobs:
|
jobs:
|
||||||
test-python:
|
say-hello:
|
||||||
# Install dependencies and run tests
|
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
|
||||||
|
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/python:3.8-node
|
# Specify the version you desire here
|
||||||
working_directory: ~/project/docs
|
# See: https://circleci.com/developer/images/image/cimg/base
|
||||||
|
- image: cimg/base:current
|
||||||
|
|
||||||
|
# Add steps to the job
|
||||||
|
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
|
||||||
steps:
|
steps:
|
||||||
- checkout:
|
# Checkout the code as the first step.
|
||||||
path: ~/project
|
- checkout
|
||||||
- python/install-packages
|
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: "Say hello"
|
||||||
command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.')
|
command: "echo Hello, World!"
|
||||||
- store_test_results:
|
|
||||||
path: junit.xml
|
# Orchestrate jobs using workflows
|
||||||
deploy:
|
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
|
||||||
# This is an example deploy job, not actually used by the workflow
|
|
||||||
docker:
|
|
||||||
- image: cimg/base:stable
|
|
||||||
steps:
|
|
||||||
# Replace this with steps to deploy to users
|
|
||||||
- run:
|
|
||||||
name: deploy
|
|
||||||
command: '#e.g. ./deploy.sh'
|
|
||||||
- run:
|
|
||||||
name: found github actions config
|
|
||||||
command: ':'
|
|
||||||
workflows:
|
workflows:
|
||||||
build-and-test:
|
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
|
||||||
|
# Inside the workflow, you define the jobs you want to run.
|
||||||
jobs:
|
jobs:
|
||||||
- test-python
|
- say-hello
|
||||||
# - deploy:
|
|
||||||
# requires:
|
|
||||||
# - test-python
|
|
Loading…
x
Reference in New Issue
Block a user